diff options
-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 dbcaf63..a00c969 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 d0d1c49..db35268 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) { |