search for: modmain

Displaying 1 result from an estimated 1 matches for "modmain".

2011 Aug 31
2
[LLVMdev] How to place call(s) to functions found in other llvm modules ???
..._fd_ostream::F_Binary); if (!error.empty()) { errs() << error << '\n'; delete FDOut; return 0; } return FDOut; } int main(int argc, char**argv) { LLVMContext& Context = getGlobalContext(); Module* ModGCD = makeLLVMModule(Context); Module* ModMain = makeMainModule(Context, *ModGCD); OwningPtr<tool_output_file> OutGCD (GetOutputStream("gcd.bc")); if (!OutGCD) return 1; OwningPtr<tool_output_file> OutMain (GetOutputStream("maingcd.bc")); if (!OutMain) return 1; verifyModule(*ModGCD, PrintMessag...