[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)
commitfe8e55cbc0b7df0eca07c10e4b6b440c80ab6d13
tree7c053a2248292f3611b367b9a259c59b24ac6a6b
parentf28da43112838aaf28c6da72c0a61da112cc81c8
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239640 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
lib/ExecutionEngine/Orc/IndirectionUtils.cpp
tools/lli/OrcLazyJIT.h