commit | b9d1005e96681b5c8cc1ed959fa129de62933020 | [log] [tgz] |
---|---|---|
author | Pedro Artigas <partigas@apple.com> | Fri Jan 04 18:04:42 2013 +0000 |
committer | Pedro Artigas <partigas@apple.com> | Fri Jan 04 18:04:42 2013 +0000 |
tree | f2b9b160817bf2e13e953af6349551f9057749c3 | |
parent | 60230ef987f234df88a166fc7878cf3051bca0a1 [diff] [blame] |
small fixes to enable the reuse of the pass manager across multiple modules git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171475 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/MachineModuleInfo.cpp b/lib/CodeGen/MachineModuleInfo.cpp index 1869fe3..0ea9ae0 100644 --- a/lib/CodeGen/MachineModuleInfo.cpp +++ b/lib/CodeGen/MachineModuleInfo.cpp
@@ -266,7 +266,6 @@ } MachineModuleInfo::~MachineModuleInfo() { - delete ObjFileMMI; } bool MachineModuleInfo::doInitialization(Module &M) { @@ -294,6 +293,9 @@ Context.reset(); + delete ObjFileMMI; + ObjFileMMI = 0; + return false; }