Displaying 1 result from an estimated 1 matches for "resultofcall".
Did you mean:
resultofcalcs
2008 Jan 16
0
[LLVMdev] Cross-module function calls (code included)
...(utilityFunctionType,
llvm::Function::ExternalLinkage, "Utility Function", mainModule);
mainFunction = cast<Function>(mainModule->getOrInsertFunction("Main
Function", llvm::Type::Int32Ty, NULL));
entry = new BasicBlock("entry", mainFunction);
llvm::Value * resultOfCall = new
llvm::CallInst(utilityFunctionPrototype, "", entry);
new llvm::ReturnInst(resultOfCall, entry);
utilityModule = new Module("Utility Module");
utilityFunction = new llvm::Function(utilityFunctionType,
llvm::Function::ExternalLinkage, "Utility Function", uti...