[llvm-commits] [llvm] r42482 - in /llvm/trunk/lib/Target: ARM/ARMAsmPrinter.cpp X86/X86AsmPrinter.h
Gordon Henriksen
gordonhenriksen at mac.com
Sun Sep 30 06:39:30 PDT 2007
Author: gordon
Date: Sun Sep 30 08:39:29 2007
New Revision: 42482
URL: http://llvm.org/viewvc/llvm-project?rev=42482&view=rev
Log:
AsmPrinters overriding getAnalysisUsage should call super.
And not super's super, either.
Modified:
llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp
llvm/trunk/lib/Target/X86/X86AsmPrinter.h
Modified: llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp?rev=42482&r1=42481&r2=42482&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp Sun Sep 30 08:39:29 2007
@@ -152,6 +152,7 @@
}
void getAnalysisUsage(AnalysisUsage &AU) const {
+ AsmPrinter::getAnalysisUsage(AU);
AU.setPreservesAll();
AU.addRequired<MachineModuleInfo>();
}
Modified: llvm/trunk/lib/Target/X86/X86AsmPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86AsmPrinter.h?rev=42482&r1=42481&r2=42482&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86AsmPrinter.h (original)
+++ llvm/trunk/lib/Target/X86/X86AsmPrinter.h Sun Sep 30 08:39:29 2007
@@ -64,7 +64,7 @@
Subtarget->isTargetCygMing()) {
AU.addRequired<MachineModuleInfo>();
}
- MachineFunctionPass::getAnalysisUsage(AU);
+ AsmPrinter::getAnalysisUsage(AU);
}
const X86Subtarget *Subtarget;
More information about the llvm-commits
mailing list