summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-15 22:44:26 +0000
committerChris Lattner <sabre@nondot.org>2009-09-15 22:44:26 +0000
commitf2471ec967bce38d9f3ac8a3a3898f302e88d988 (patch)
tree4bad18a2c1af3661c13a1c2354a89332ae7cd1f3 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent87f540608106f28d9319b2148eb1b00192e020c2 (diff)
downloadbcm5719-llvm-f2471ec967bce38d9f3ac8a3a3898f302e88d988.tar.gz
bcm5719-llvm-f2471ec967bce38d9f3ac8a3a3898f302e88d988.zip
add hooks to hang target-specific goop off MachineModuleInfo,
move MachineFunctionInfo virtual method out of line to give it a home. llvm-svn: 81940
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineModuleInfo.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp
index a673d177fa1..b32ed81d1cb 100644
--- a/llvm/lib/CodeGen/MachineModuleInfo.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud