Move EE dtor where it belongs
authorBrian Gaeke <gaeke@uiuc.edu>
Thu, 4 Sep 2003 22:57:27 +0000 (22:57 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Thu, 4 Sep 2003 22:57:27 +0000 (22:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8345 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/ExecutionEngine.cpp
tools/lli/lli.cpp

index dbcaf63cdee879b9f2fb142d6447d71270fd3d90..a00c969908202fdc4a4ba7b2ea262ceb936222af 100644 (file)
 
 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;
index d0d1c4997b43d707ed137a94e85339ad6f417b8e..db3526824a59dfefddabd69b86b5f0877dcb3028 100644 (file)
@@ -33,14 +33,6 @@ namespace {
                                 cl::init(false));
 }
 
-//===----------------------------------------------------------------------===//
-// ExecutionEngine Class Implementation
-//
-
-ExecutionEngine::~ExecutionEngine() {
-  delete &CurMod;
-}
-
 //===----------------------------------------------------------------------===//
 // main Driver function
 //