search for: dumpmodulestobitcodefile

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

2013 Mar 17
0
[LLVMdev] LLVM ERROR: Program used external function 'X.foo' which could not be resolved!
...= add i32 %"argument read", 2 store i32 %addtmp, i32* %g %"argument read1" = load i32* %bar %read = load i32* %g %"Code::Op::Mul" = mul i32 %"argument read1", %read ret i32 %"Code::Op::Mul" } I try to grab a function from it by this code dumpModulesToBitcodeFile( std::string("./executableModule"), llvmModule); llvm::Function* result = llvmModule->getFunction("X.foo"); OurFPM = new llvm::FunctionPassManager(llvmModule); llvm::EngineBuilder eB(llvmModule); eB.setEngineKind(llvm::EngineKind::JIT); llvmEngine = eB.create(); but it fails...