From: Brian Gaeke Date: Thu, 4 Sep 2003 22:57:27 +0000 (+0000) Subject: Move EE dtor where it belongs X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8e539488816c9e52bde0af475f72cd3e6407d558;p=oota-llvm.git Move EE dtor where it belongs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8345 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index dbcaf63cdee..a00c9699082 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 d0d1c4997b4..db3526824a5 100644 --- a/tools/lli/lli.cpp +++ b/tools/lli/lli.cpp @@ -33,14 +33,6 @@ namespace { cl::init(false)); } -//===----------------------------------------------------------------------===// -// ExecutionEngine Class Implementation -// - -ExecutionEngine::~ExecutionEngine() { - delete &CurMod; -} - //===----------------------------------------------------------------------===// // main Driver function //