search for: emittedfunc

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

2011 Jul 01
0
[LLVMdev] Bug in Inliner w/ lazy bitcode
...ion. At this point, when generating native code, I get an Invalid CALL when it tries to deserialize RunStuff. So the overall process is: - Read bitcode from .bc file. - Add a new Function to the Module that calls RunStuff. - Run the Inliner over the Module. - Ask a JIT for getPointerToFunction(emittedFunc) After digging a bit (verified by dumping the module in load_bitcode.cc before and after inlining), the problem comes from the Inliner removing SomeContainer::getPtr because it believes ("incorrectly") that it's unused (lib/Transforms/IPO/Inliner.cpp:539 in TOT). When the bitcode rea...