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 | c5437ea42948f1e4cc89c0e8d944a380e6c880e7 (patch) | |
tree | b8172788c0ab3e3f721cb36b1f6ac29499ed2ab0 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 0b0dcd987da5ea4f557c936616dc65f7adc8e187 (diff) | |
download | bcm5719-llvm-c5437ea42948f1e4cc89c0e8d944a380e6c880e7.tar.gz bcm5719-llvm-c5437ea42948f1e4cc89c0e8d944a380e6c880e7.zip |
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.
llvm-svn: 65379
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index d4dd79572ed..fd71ba971e7 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -37,8 +37,8 @@ using namespace llvm; char AsmPrinter::ID = 0; AsmPrinter::AsmPrinter(raw_ostream &o, TargetMachine &tm, - const TargetAsmInfo *T) - : MachineFunctionPass(&ID), FunctionNumber(0), O(o), + const TargetAsmInfo *T, bool F) + : MachineFunctionPass(&ID), FunctionNumber(0), Fast(F), O(o), TM(tm), TAI(T), TRI(tm.getRegisterInfo()), IsInTextSection(false) {} |