AsmPrinters overriding getAnalysisUsage should call super.
authorGordon Henriksen <gordonhenriksen@mac.com>
Sun, 30 Sep 2007 13:39:29 +0000 (13:39 +0000)
committerGordon Henriksen <gordonhenriksen@mac.com>
Sun, 30 Sep 2007 13:39:29 +0000 (13:39 +0000)
And not super's super, either.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42482 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMAsmPrinter.cpp
lib/Target/X86/X86AsmPrinter.h

index 342e52a..38183c6 100644 (file)
@@ -152,6 +152,7 @@ namespace {
     }
     
     void getAnalysisUsage(AnalysisUsage &AU) const {
+      AsmPrinter::getAnalysisUsage(AU);
       AU.setPreservesAll();
       AU.addRequired<MachineModuleInfo>();
     }
index 49110f4..a32142c 100644 (file)
@@ -64,7 +64,7 @@ struct VISIBILITY_HIDDEN X86SharedAsmPrinter : public AsmPrinter {
         Subtarget->isTargetCygMing()) {
       AU.addRequired<MachineModuleInfo>();
     }
-    MachineFunctionPass::getAnalysisUsage(AU);
+    AsmPrinter::getAnalysisUsage(AU);
   }
 
   const X86Subtarget *Subtarget;