summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-05-07 13:55:51 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-05-07 13:55:51 +0000
commitcd76240f3d0f6c5f8c80e4762a8fe3a4de22e059 (patch)
treee13fcadd5edcae85c8a5c5a2ec1979b6e01e2f3f /utils
parent7132e12ee5658aa2b8ba6cdd81adb7944ddcb33e (diff)
downloadllvm-cd76240f3d0f6c5f8c80e4762a8fe3a4de22e059.tar.gz
llvm-cd76240f3d0f6c5f8c80e4762a8fe3a4de22e059.tar.bz2
llvm-cd76240f3d0f6c5f8c80e4762a8fe3a4de22e059.tar.xz
Move the tablegen-produced DebugLoc handling into a AsmWriter::processDebugLoc function.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/AsmWriterEmitter.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp
index 3937fd104a..c615abad50 100644
--- a/utils/TableGen/AsmWriterEmitter.cpp
+++ b/utils/TableGen/AsmWriterEmitter.cpp
@@ -649,18 +649,7 @@ void AsmWriterEmitter::run(std::ostream &O) {
}
O << "\";\n\n";
- O << " if (TAI->doesSupportDebugInformation() &&\n"
- << " DW->ShouldEmitDwarfDebug()) {\n"
- << " DebugLoc CurDL = MI->getDebugLoc();\n\n"
- << " if (!CurDL.isUnknown()) {\n"
- << " static DebugLocTuple PrevDLT(0, ~0U, ~0U);\n"
- << " DebugLocTuple CurDLT = MF->getDebugLocTuple(CurDL);\n\n"
- << " if (CurDLT.CompileUnit != 0 && PrevDLT != CurDLT)\n"
- << " printLabel(DW->RecordSourceLine(CurDLT.Line, CurDLT.Col,\n"
- << " DICompileUnit(CurDLT.CompileUnit)));\n\n"
- << " PrevDLT = CurDLT;\n"
- << " }\n"
- << " }\n\n";
+ O << " processDebugLoc(MI->getDebugLoc());\n\n";
O << " if (MI->getOpcode() == TargetInstrInfo::INLINEASM) {\n"
<< " O << \"\\t\";\n"