Displaying 10 results from an estimated 10 matches for "getheadersearchopts".
2010 Aug 18
1
[LLVMdev] clang: call extern function using JIT
...const_cast<const char
**>(CCArgs.data()),
const_cast<const char
**>(CCArgs.data()) +
CCArgs.size(),
Diags);
// Show the invocation, with -v.
if (CI->getHeaderSearchOpts().Verbose) {
llvm::errs() << "clang invocation:\n";
C->PrintJob(llvm::errs(), C->getJobs(), "\n", true);
llvm::errs() << "\n";
}
// FIXME: This is copied from cc1_main.cpp; simplify and eliminate.
// Create a compiler instance to h...
2010 Aug 14
2
[LLVMdev] clang: compile c code from char array?
...const_cast<const char
**>(CCArgs.data()),
const_cast<const char
**>(CCArgs.data()) +
CCArgs.size(),
Diags);
// Show the invocation, with -v.
if (CI->getHeaderSearchOpts().Verbose) {
llvm::errs() << "clang invocation:\n";
C->PrintJob(llvm::errs(), C->getJobs(), "\n", true);
llvm::errs() << "\n";
--
View this message in context: http://old.nabble.com/clang%3A-compile-c-code-from-char-array--tp29439679p29...
2010 Aug 18
0
[LLVMdev] clang: call extern function using JIT
I tried what you said, now I get:
LLVM ERROR: Program used external function 'yipee' which could not be
resolved!
Stack dump:
0. Running pass 'X86 Machine Code Emitter' on function '@main'
did not even get as far as a breakpoint.
Óscar Fuentes wrote:
>
> gafferuk <gafferuk at gmail.com> writes:
>
>> Im confused. The function i wish to call is
2010 Aug 18
2
[LLVMdev] clang: call extern function using JIT
gafferuk <gafferuk at gmail.com> writes:
> Im confused. The function i wish to call is a return type of int.
> Im calling it with int dd = yipee(1);
>
> What's wrong?
Declare the function:
int yipee(int);
int main()
{
int dd = yipee(1);
return 0;
}
If that still crashes, put a breakpoint on `yipee' and see if the
execution gets there, if the argument is
2013 Oct 03
0
[LLVMdev] libclang JIT frontend
...const_cast<const char **>(CCArgs.data()),
const_cast<const char **>(CCArgs.data()) +
CCArgs.size(),
Diags);
// Show the invocation, with -v.
if (CI->getHeaderSearchOpts().Verbose) {
llvm::errs() << "clang invocation:\n";
C->PrintJob(llvm::errs(), C->getJobs(), "\n", true);
llvm::errs() << "\n";
}
// FIXME: This is copied from cc1_main.cpp; simplify and eliminate.
// Create a compiler instance to h...
2010 Aug 15
2
[LLVMdev] clang: compile c code from char array?
...data()),
>> const_cast<const char
>> **>(CCArgs.data()) +
>> CCArgs.size(),
>> Diags);
>>
>> // Show the invocation, with -v.
>> if (CI->getHeaderSearchOpts().Verbose) {
>> llvm::errs() << "clang invocation:\n";
>> C->PrintJob(llvm::errs(), C->getJobs(), "\n", true);
>> llvm::errs() << "\n";
>>
>> --
>> View this message in context:
>> http://old.nabble.c...
2013 Feb 19
0
[LLVMdev] LLVM/Clang 3.1: Add a new include path in a clang C++ based parser
Hi,
I'm having troubles to add a custom include path to a clang based C++
parser.
I'd like to properly support this opencv code under Linux:
...
#include "cv.h"
#include "highgui.h"
...
This is what I'm using:
TheCompInst->getHeaderSearchOpts().AddPath(StringRef("/usr/include/opencv"),clang::frontend::Quoted
,false, true, false, false, false);
Note: I have tried also with clang::frontend::Angled without success.
Can you see the problem? Could you please say me where can I find some
Clang 3.1 based related example?
Many tha...
2013 Feb 19
0
[LLVMdev] LLVM/Clang 3.1: Add a new include path in a clang C++ based parser
Hi,
I'm having troubles to add a custom include path to a clang based C++
parser.
I'd like to properly support this opencv code under Linux:
...
#include "cv.h"
#include "highgui.h"
...
This is what I'm using:
TheCompInst->getHeaderSearchOpts().AddPath(StringRef("/usr/include/opencv"),clang::frontend::Quoted
,false, true, false, false, false);
Note: I have tried also with clang::frontend::Angled without success.
Can you see the problem? Could you please say me where can I find some
Clang 3.1 based related example?
Many tha...
2010 Aug 15
0
[LLVMdev] clang: compile c code from char array?
...nst char
> **>(CCArgs.data()),
> const_cast<const char
> **>(CCArgs.data()) +
> CCArgs.size(),
> Diags);
>
> // Show the invocation, with -v.
> if (CI->getHeaderSearchOpts().Verbose) {
> llvm::errs() << "clang invocation:\n";
> C->PrintJob(llvm::errs(), C->getJobs(), "\n", true);
> llvm::errs() << "\n";
>
> --
> View this message in context:
> http://old.nabble.com/clang%3A-compile-c-code-f...
2010 Aug 15
0
[LLVMdev] clang: compile c code from char array?
...const_cast<const char
>>> **>(CCArgs.data()) +
>>> CCArgs.size(),
>>> Diags);
>>>
>>> // Show the invocation, with -v.
>>> if (CI->getHeaderSearchOpts().Verbose) {
>>> llvm::errs() << "clang invocation:\n";
>>> C->PrintJob(llvm::errs(), C->getJobs(), "\n", true);
>>> llvm::errs() << "\n";
>>>
>>> --
>>> View this message in context:
>&g...