diff options
author | Devang Patel <dpatel@apple.com> | 2009-01-08 23:40:34 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-01-08 23:40:34 +0000 |
commit | eb3fc289141ad44883acbb91e839ab1b9a0f2025 (patch) | |
tree | ba35a1e9f588e7ef801a8f2432cd92f1a63a1435 /lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h | |
parent | 5d5ee80ea8bf300d1ee8ccbd7174466d98a1e99e (diff) | |
download | external_llvm-eb3fc289141ad44883acbb91e839ab1b9a0f2025.zip external_llvm-eb3fc289141ad44883acbb91e839ab1b9a0f2025.tar.gz external_llvm-eb3fc289141ad44883acbb91e839ab1b9a0f2025.tar.bz2 |
Convert DwarfWriter into a pass.
Now Users request DwarfWriter through getAnalysisUsage() instead of creating an instance of DwarfWriter object directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61955 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h')
-rw-r--r-- | lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h index 40a5b4f..3732ce8 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h @@ -29,14 +29,13 @@ namespace llvm { struct MachineJumpTableInfo; struct VISIBILITY_HIDDEN X86ATTAsmPrinter : public AsmPrinter { - DwarfWriter DW; + DwarfWriter *DW; MachineModuleInfo *MMI; - const X86Subtarget *Subtarget; X86ATTAsmPrinter(raw_ostream &O, X86TargetMachine &TM, const TargetAsmInfo *T) - : AsmPrinter(O, TM, T), DW(O, this, T), MMI(0) { + : AsmPrinter(O, TM, T), DW(0), MMI(0) { Subtarget = &TM.getSubtarget<X86Subtarget>(); } @@ -51,6 +50,7 @@ struct VISIBILITY_HIDDEN X86ATTAsmPrinter : public AsmPrinter { Subtarget->isTargetCygMing()) { AU.addRequired<MachineModuleInfo>(); } + AU.addRequired<DwarfWriter>(); AsmPrinter::getAnalysisUsage(AU); } |