From 90429c487fe62582241ffe0d3e8acce936f2f8bc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 5 Apr 2010 00:42:55 +0000 Subject: [PATCH] just have all targets create the DwarfWriter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100377 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 1 + lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp | 6 ------ lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp | 13 ------------- lib/Target/X86/AsmPrinter/X86AsmPrinter.h | 6 ------ lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp | 5 ----- 5 files changed, 1 insertion(+), 30 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 5eed88cf21d..89fa0c54f5f 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -108,6 +108,7 @@ void AsmPrinter::getAnalysisUsage(AnalysisUsage &AU) const { MachineFunctionPass::getAnalysisUsage(AU); AU.addRequired(); AU.addRequired(); + AU.addRequired(); if (isVerbose()) AU.addRequired(); } diff --git a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp index bd7ccf88776..419af5d9069 100644 --- a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp +++ b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp @@ -26,7 +26,6 @@ #include "llvm/Type.h" #include "llvm/Assembly/Writer.h" #include "llvm/CodeGen/AsmPrinter.h" -#include "llvm/CodeGen/DwarfWriter.h" #include "llvm/CodeGen/MachineModuleInfoImpls.h" #include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/CodeGen/MachineJumpTableInfo.h" @@ -274,11 +273,6 @@ namespace { O << ')'; } } - - void getAnalysisUsage(AnalysisUsage &AU) const { - AsmPrinter::getAnalysisUsage(AU); - AU.addRequired(); - } }; } // end of anonymous namespace diff --git a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp index dbd404df499..605656493c4 100644 --- a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp @@ -26,7 +26,6 @@ #include "llvm/Module.h" #include "llvm/Assembly/Writer.h" #include "llvm/CodeGen/AsmPrinter.h" -#include "llvm/CodeGen/DwarfWriter.h" #include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineInstrBuilder.h" @@ -342,11 +341,6 @@ namespace { bool doFinalization(Module &M); virtual void EmitFunctionEntryLabel(); - - void getAnalysisUsage(AnalysisUsage &AU) const { - AU.addRequired(); - PPCAsmPrinter::getAnalysisUsage(AU); - } }; /// PPCDarwinAsmPrinter - PowerPC assembly printer, customized for Darwin/Mac @@ -364,13 +358,6 @@ namespace { void EmitStartOfAsmFile(Module &M); void EmitFunctionStubs(const MachineModuleInfoMachO::SymbolListTy &Stubs); - - void getAnalysisUsage(AnalysisUsage &AU) const { - AU.setPreservesAll(); - AU.addRequired(); - AU.addRequired(); - PPCAsmPrinter::getAnalysisUsage(AU); - } }; } // end of anonymous namespace diff --git a/lib/Target/X86/AsmPrinter/X86AsmPrinter.h b/lib/Target/X86/AsmPrinter/X86AsmPrinter.h index d13256e854c..ee59289dc57 100644 --- a/lib/Target/X86/AsmPrinter/X86AsmPrinter.h +++ b/lib/Target/X86/AsmPrinter/X86AsmPrinter.h @@ -19,7 +19,6 @@ #include "../X86TargetMachine.h" #include "llvm/ADT/StringSet.h" #include "llvm/CodeGen/AsmPrinter.h" -#include "llvm/CodeGen/DwarfWriter.h" #include "llvm/CodeGen/MachineModuleInfo.h" #include "llvm/CodeGen/ValueTypes.h" #include "llvm/Support/Compiler.h" @@ -46,11 +45,6 @@ class VISIBILITY_HIDDEN X86AsmPrinter : public AsmPrinter { const X86Subtarget &getSubtarget() const { return *Subtarget; } - void getAnalysisUsage(AnalysisUsage &AU) const { - AU.addRequired(); - AsmPrinter::getAnalysisUsage(AU); - } - virtual void EmitStartOfAsmFile(Module &M); virtual void EmitEndOfAsmFile(Module &M); diff --git a/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp b/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp index b1750e853d4..3b61ff66965 100644 --- a/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp +++ b/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp @@ -82,11 +82,6 @@ namespace { bool runOnMachineFunction(MachineFunction &MF); void EmitInstruction(const MachineInstr *MI); void EmitFunctionBodyEnd(); - - void getAnalysisUsage(AnalysisUsage &AU) const { - AsmPrinter::getAnalysisUsage(AU); - AU.addRequired(); - } }; } // end of anonymous namespace