[Orc] Fix a bug in the CompileOnDemand layer where stub decls were not cloned
authorLang Hames <lhames@gmail.com>
Fri, 12 Jun 2015 21:31:15 +0000 (21:31 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 12 Jun 2015 21:31:15 +0000 (21:31 +0000)
commit2e36ddf6717638b80f2fcdedcda4b3de054df842
tree122492353ac6eb92c4ec451141d667118f175629
parentb274738725f2e25595a6e1d021699194c146221a
[Orc] Fix a bug in the CompileOnDemand layer where stub decls were not cloned
into partitions. Also, add an option to clone stub definitions (not just decls)
into partitions: these definitions could be inlined in some places to avoid the
overhead of calling via the stub.

Found by inspection - no test case yet, although I plan to add a unit test for
this once the CompileOnDemand layer refactoring settles down.

llvm-svn: 239640
llvm/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
llvm/lib/ExecutionEngine/Orc/IndirectionUtils.cpp
llvm/tools/lli/OrcLazyJIT.h