diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-05-07 13:55:51 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-05-07 13:55:51 +0000 |
commit | 58f38113007cb729622ba6b960e3f1aab6ed3a4c (patch) | |
tree | fd2ab52209ec1325bf081db290d75b15f33a44d0 /llvm/utils/TableGen/AsmWriterEmitter.cpp | |
parent | ae1e53c87b6f267a3bde0044602fe39331d13b52 (diff) | |
download | bcm5719-llvm-58f38113007cb729622ba6b960e3f1aab6ed3a4c.tar.gz bcm5719-llvm-58f38113007cb729622ba6b960e3f1aab6ed3a4c.zip |
Move the tablegen-produced DebugLoc handling into a AsmWriter::processDebugLoc function.
No functionality change.
llvm-svn: 71156
Diffstat (limited to 'llvm/utils/TableGen/AsmWriterEmitter.cpp')
-rw-r--r-- | llvm/utils/TableGen/AsmWriterEmitter.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/llvm/utils/TableGen/AsmWriterEmitter.cpp b/llvm/utils/TableGen/AsmWriterEmitter.cpp index 3937fd104a7..c615abad506 100644 --- a/llvm/utils/TableGen/AsmWriterEmitter.cpp +++ b/llvm/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" |