search for: functioninanothermodule

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

2018 Apr 04
0
weird behaviour of llvm::linker::LinkInModule()
...lue' code.</div><div>I want to call some functions from another module (<strong>B</strong>);</div><div>I load module <strong>B</strong> withing the same LLVMContext, and create a function declaration in module A via:</div><div>    auto functionInAnotherModule = ModuleB.getFunction(callableName);</div><div>    auto functionType = functionInAnotherModule->getFunctionType();</div><div>    auto localFunction = llvm::Function::Create(functionType, llvm::GlobalValue::LinkageTypes::ExternalWeakLinkage, callableName, &ModuleA);&lt...