[LLVMdev] clang: call extern function using JIT

Anton Korobeynikov anton at korobeynikov.info
Wed Aug 18 06:29:02 PDT 2010


> Im confused. The function i wish to call is a return type of int.
You're creating the function which returns i32 and have exactly one i32 argument

> Im calling it with int dd = yipee(1);
This way you're calling int yipee(...) according to C standard
(because you haven't declared this previously).

> What's wrong?
I have not idea, but this is at least one thing which needs to be addressed.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list