diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-02-24 08:30:20 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-02-24 08:30:20 +0000 |
commit | 57f0db833dc30404f1f5d28b23df326e520698ec (patch) | |
tree | 543149bc13d79de8e79f707ddbf23da88f704425 /lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h | |
parent | 3d8bde8dfb2177dabbc6225a451889305d3756dd (diff) | |
download | external_llvm-57f0db833dc30404f1f5d28b23df326e520698ec.zip external_llvm-57f0db833dc30404f1f5d28b23df326e520698ec.tar.gz external_llvm-57f0db833dc30404f1f5d28b23df326e520698ec.tar.bz2 |
Overhaul my earlier submission due to feedback. It's a large patch, but most of
them are generic changes.
- Use the "fast" flag that's already being passed into the asm printers instead
of shoving it into the DwarfWriter.
- Instead of calling "MI->getParent()->getParent()" for every MI, set the
machine function when calling "runOnMachineFunction" in the asm printers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65379 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h')
-rw-r--r-- | lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h index 6be9958..3540734 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h @@ -28,15 +28,14 @@ namespace llvm { struct MachineJumpTableInfo; -struct VISIBILITY_HIDDEN X86ATTAsmPrinter : public AsmPrinter { - MachineFunction *MF; +class VISIBILITY_HIDDEN X86ATTAsmPrinter : public AsmPrinter { DwarfWriter *DW; MachineModuleInfo *MMI; const X86Subtarget *Subtarget; - + public: X86ATTAsmPrinter(raw_ostream &O, X86TargetMachine &TM, - const TargetAsmInfo *T) - : AsmPrinter(O, TM, T), DW(0), MMI(0) { + const TargetAsmInfo *T, bool F) + : AsmPrinter(O, TM, T, F), DW(0), MMI(0) { Subtarget = &TM.getSubtarget<X86Subtarget>(); } |