Displaying 1 result from an estimated 1 matches for "mainoflibrary".
2013 Nov 21
1
[LLVMdev] Replacing C-style function
...urn 0xdeadbeef;\n"
<<"}\n"
<<"int print2()\n"
<<"{\n"
<<" printf(\"Inside print2\\n\");\n"
<<" return 0xbeefdead;\n"
<<"}\n"
<<"int mainOfLibrary(void)\n"
<<"{\n"
<<" return print1();\n"
<<"}\n"
<<"}\n"
;
I compile this into an llvm::Module (say main) correctly and then create
and execution engine out of it:
std::string errMsg;
llvm::...