diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-09-04 22:57:27 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-09-04 22:57:27 +0000 |
commit | 8e539488816c9e52bde0af475f72cd3e6407d558 (patch) | |
tree | 108a75c2f7b085877a9bfd59933e2b898b891025 | |
parent | f58815e161c8c91075dd1af7a277314190ebc286 (diff) |
Move EE dtor where it belongs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8345 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/ExecutionEngine/ExecutionEngine.cpp | 4 | ||||
-rw-r--r-- | tools/lli/lli.cpp | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index dbcaf63cde..a00c969908 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/lib/ExecutionEngine/ExecutionEngine.cpp @@ -20,6 +20,10 @@ Statistic<> NumInitBytes("lli", "Number of bytes of global vars initialized"); +ExecutionEngine::~ExecutionEngine() { + delete &CurMod; +} + ExecutionEngine *ExecutionEngine::create (Module *M, bool ForceInterpreter, bool TraceMode) { ExecutionEngine *EE = 0; diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp index d0d1c4997b..db3526824a 100644 --- a/tools/lli/lli.cpp +++ b/tools/lli/lli.cpp @@ -34,14 +34,6 @@ namespace { } //===----------------------------------------------------------------------===// -// ExecutionEngine Class Implementation -// - -ExecutionEngine::~ExecutionEngine() { - delete &CurMod; -} - -//===----------------------------------------------------------------------===// // main Driver function // int main(int argc, char** argv, const char ** envp) { |