diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-15 22:44:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-15 22:44:26 +0000 |
commit | a70e2e3d4831b8a39ea6bae5c62df29fa82a86f3 (patch) | |
tree | 05c14c52d3fe8ebd8caa27117542615e0f00a1ae /lib/CodeGen/MachineModuleInfo.cpp | |
parent | 40fe16fadaccb86d9bff13ebe1c9a0cb20b2251b (diff) | |
download | external_llvm-a70e2e3d4831b8a39ea6bae5c62df29fa82a86f3.zip external_llvm-a70e2e3d4831b8a39ea6bae5c62df29fa82a86f3.tar.gz external_llvm-a70e2e3d4831b8a39ea6bae5c62df29fa82a86f3.tar.bz2 |
add hooks to hang target-specific goop off MachineModuleInfo,
move MachineFunctionInfo virtual method out of line to give it
a home.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r-- | lib/CodeGen/MachineModuleInfo.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/CodeGen/MachineModuleInfo.cpp b/lib/CodeGen/MachineModuleInfo.cpp index a673d17..b32ed81 100644 --- a/lib/CodeGen/MachineModuleInfo.cpp +++ b/lib/CodeGen/MachineModuleInfo.cpp @@ -32,23 +32,23 @@ static RegisterPass<MachineModuleInfo> X("machinemoduleinfo", "Module Information"); char MachineModuleInfo::ID = 0; +// Out of line virtual method. +MachineModuleInfoImpl::~MachineModuleInfoImpl() {} + //===----------------------------------------------------------------------===// MachineModuleInfo::MachineModuleInfo() : ImmutablePass(&ID) -, LabelIDList() -, FrameMoves() -, LandingPads() -, Personalities() +, TargetMMI(0) , CallsEHReturn(0) , CallsUnwindInit(0) -, DbgInfoAvailable(false) -{ +, DbgInfoAvailable(false) { // Always emit some info, by default "no personality" info. Personalities.push_back(NULL); } -MachineModuleInfo::~MachineModuleInfo() { +MachineModuleInfo::~MachineModuleInfo() { + delete TargetMMI; } /// doInitialization - Initialize the state for a new module. |