From 168f8f3916733e18b237046007d41fa95f2ef025 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Mon, 22 Sep 2008 20:58:04 +0000 Subject: Mark several codegen passes as preserving all analysis. llvm-svn: 56469 --- llvm/lib/CodeGen/MachineModuleInfo.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp') diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp index 69f8d3c..9843ff2 100644 --- a/llvm/lib/CodeGen/MachineModuleInfo.cpp +++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp @@ -2013,6 +2013,11 @@ struct DebugLabelFolder : public MachineFunctionPass { static char ID; DebugLabelFolder() : MachineFunctionPass(&ID) {} + virtual void getAnalysisUsage(AnalysisUsage &AU) const { + AU.setPreservesAll(); + MachineFunctionPass::getAnalysisUsage(AU); + } + virtual bool runOnMachineFunction(MachineFunction &MF); virtual const char *getPassName() const { return "Label Folder"; } }; -- cgit v1.1