Move EE dtor where it belongs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8345 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke 2003-09-04 22:57:27 +00:00
parent f58815e161
commit 8e53948881
2 changed files with 4 additions and 8 deletions

View File

@ -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;

View File

@ -33,14 +33,6 @@ namespace {
cl::init(false));
}
//===----------------------------------------------------------------------===//
// ExecutionEngine Class Implementation
//
ExecutionEngine::~ExecutionEngine() {
delete &CurMod;
}
//===----------------------------------------------------------------------===//
// main Driver function
//