summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-09-22 22:21:38 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-09-22 22:21:38 +0000
commit8b56a90bec639665fc024896d2fc2bdd095c76a3 (patch)
tree781ba506e5a3f0c1b14a4e3ae12c3510d6f49428 /lib/CodeGen/MachineModuleInfo.cpp
parentbc09afa80ec06d564fda3995dac1a2da7136b33d (diff)
downloadllvm-8b56a90bec639665fc024896d2fc2bdd095c76a3.tar.gz
llvm-8b56a90bec639665fc024896d2fc2bdd095c76a3.tar.bz2
llvm-8b56a90bec639665fc024896d2fc2bdd095c76a3.tar.xz
Instead of setPreservesAll, just mark them preseving machine loop info and machine dominators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r--lib/CodeGen/MachineModuleInfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineModuleInfo.cpp b/lib/CodeGen/MachineModuleInfo.cpp
index 9843ff279a..a83da0a232 100644
--- a/lib/CodeGen/MachineModuleInfo.cpp
+++ b/lib/CodeGen/MachineModuleInfo.cpp
@@ -14,6 +14,7 @@
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineLocation.h"
+#include "llvm/CodeGen/Passes.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
@@ -2014,7 +2015,8 @@ struct DebugLabelFolder : public MachineFunctionPass {
DebugLabelFolder() : MachineFunctionPass(&ID) {}
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
- AU.setPreservesAll();
+ AU.addPreservedID(MachineLoopInfoID);
+ AU.addPreservedID(MachineDominatorsID);
MachineFunctionPass::getAnalysisUsage(AU);
}