Displaying 1 result from an estimated 1 matches for "outmain".
Did you mean:
ltmain
2011 Aug 31
2
[LLVMdev] How to place call(s) to functions found in other llvm modules ???
...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, PrintMessageAction);
verifyModule(*ModMain, PrintMessageAction);
PassManager PM;
PM.add(createPrintModulePass(&outs()));
PM.run(*ModGCD);
PM.run(*ModMain);
WriteBitcodeToFile(ModG...