diff options
| author | Lang Hames <lhames@gmail.com> | 2015-06-12 21:31:15 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2015-06-12 21:31:15 +0000 |
| commit | 2e36ddf6717638b80f2fcdedcda4b3de054df842 (patch) | |
| tree | 122492353ac6eb92c4ec451141d667118f175629 /llvm/tools/lli/OrcLazyJIT.h | |
| parent | b274738725f2e25595a6e1d021699194c146221a (diff) | |
| download | bcm5719-llvm-2e36ddf6717638b80f2fcdedcda4b3de054df842.tar.gz bcm5719-llvm-2e36ddf6717638b80f2fcdedcda4b3de054df842.zip | |
[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
Diffstat (limited to 'llvm/tools/lli/OrcLazyJIT.h')
| -rw-r--r-- | llvm/tools/lli/OrcLazyJIT.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/lli/OrcLazyJIT.h b/llvm/tools/lli/OrcLazyJIT.h index 2919c082420..2f7a0199fef 100644 --- a/llvm/tools/lli/OrcLazyJIT.h +++ b/llvm/tools/lli/OrcLazyJIT.h @@ -55,7 +55,7 @@ public: CompileLayer(ObjectLayer, orc::SimpleCompiler(*this->TM)), IRDumpLayer(CompileLayer, createDebugDumper()), CCMgr(BuildCallbackMgr(IRDumpLayer, CCMgrMemMgr, Context)), - CODLayer(IRDumpLayer, *CCMgr), + CODLayer(IRDumpLayer, *CCMgr, false), CXXRuntimeOverrides([this](const std::string &S) { return mangle(S); }) {} ~OrcLazyJIT() { |

