diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-02-18 23:12:06 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-02-18 23:12:06 +0000 |
commit | cb819f13d785ff6efcacfbd7d0fa9f3f67e5494d (patch) | |
tree | af68a0d5c11879dd67109fee2b4248e86caeb666 /lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | |
parent | f570e621ab6eec6c7656cc4c511e19aba12b42cd (diff) | |
download | external_llvm-cb819f13d785ff6efcacfbd7d0fa9f3f67e5494d.zip external_llvm-cb819f13d785ff6efcacfbd7d0fa9f3f67e5494d.tar.gz external_llvm-cb819f13d785ff6efcacfbd7d0fa9f3f67e5494d.tar.bz2 |
Put code that generates debug labels into TableGen so that it can be used by
everyone.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp')
-rw-r--r-- | lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index 9af3ba6..12cfda1 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -26,6 +26,7 @@ #include "llvm/Type.h" #include "llvm/ADT/Statistic.h" #include "llvm/ADT/StringExtras.h" +#include "llvm/CodeGen/DwarfWriter.h" #include "llvm/CodeGen/MachineJumpTableInfo.h" #include "llvm/Support/Mangler.h" #include "llvm/Support/raw_ostream.h" @@ -725,23 +726,6 @@ bool X86ATTAsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI, void X86ATTAsmPrinter::printMachineInstruction(const MachineInstr *MI) { ++EmittedInsts; - if (TAI->doesSupportDebugInformation()) { - const Function *F = MF->getFunction(); - - // FIXME: Support more than '-Os'. - if (F->hasFnAttr(Attribute::OptimizeForSize)) { - static DebugLoc PrevDL = DebugLoc::getUnknownLoc(); - DebugLoc CurDL = MI->getDebugLoc(); - - if (!CurDL.isUnknown() && PrevDL != CurDL) { - DebugLocTuple DLT = MF->getDebugLocTuple(CurDL); - printLabel(DW->RecordSourceLine(DLT.Line, DLT.Col, DLT.Src)); - } - - PrevDL = CurDL; - } - } - // Call the autogenerated instruction printer routines. printInstruction(MI); } |