Displaying 2 results from an estimated 2 matches for "d40d3eb9".
2010 Aug 14
2
[LLVMdev] clang: call application function
im using code from the clang interpreter example.
what code do I need to add so I can call functions in my main application?
Thanks.
Paul.
--
View this message in context: http://old.nabble.com/clang%3A-call-application-function-tp29439756p29439756.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
2010 Aug 15
0
[LLVMdev] clang: call application function
Ive tried the following code, but does not work.
What am I doing wrong?
// function I would like to call using JIT
extern "C"
void yipee(double val)
{
fprintf(stderr, "yipee!");
}
std::vector<const llvm::Type*> Double(1,
llvm::Type::getDoubleTy(llvm::getGlobalContext()));
llvm::FunctionType *FT =