diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-09-30 13:39:29 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-09-30 13:39:29 +0000 |
commit | 76e4b61dfd89698438a8b654194eb11b719dcc36 (patch) | |
tree | 473dd3a27daa656d36a56df770f6d58c9d6a938a | |
parent | 48f61d10e331027dc22fbc8f0f2a1b280c9e3aa9 (diff) | |
download | external_llvm-76e4b61dfd89698438a8b654194eb11b719dcc36.zip external_llvm-76e4b61dfd89698438a8b654194eb11b719dcc36.tar.gz external_llvm-76e4b61dfd89698438a8b654194eb11b719dcc36.tar.bz2 |
AsmPrinters overriding getAnalysisUsage should call super.
And not super's super, either.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42482 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMAsmPrinter.cpp | 1 | ||||
-rw-r--r-- | lib/Target/X86/X86AsmPrinter.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMAsmPrinter.cpp b/lib/Target/ARM/ARMAsmPrinter.cpp index 342e52a..38183c6 100644 --- a/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/lib/Target/ARM/ARMAsmPrinter.cpp @@ -152,6 +152,7 @@ namespace { } void getAnalysisUsage(AnalysisUsage &AU) const { + AsmPrinter::getAnalysisUsage(AU); AU.setPreservesAll(); AU.addRequired<MachineModuleInfo>(); } diff --git a/lib/Target/X86/X86AsmPrinter.h b/lib/Target/X86/X86AsmPrinter.h index 49110f4..a32142c 100644 --- a/lib/Target/X86/X86AsmPrinter.h +++ b/lib/Target/X86/X86AsmPrinter.h @@ -64,7 +64,7 @@ struct VISIBILITY_HIDDEN X86SharedAsmPrinter : public AsmPrinter { Subtarget->isTargetCygMing()) { AU.addRequired<MachineModuleInfo>(); } - MachineFunctionPass::getAnalysisUsage(AU); + AsmPrinter::getAnalysisUsage(AU); } const X86Subtarget *Subtarget; |