summaryrefslogtreecommitdiff
path: root/utils/TableGen/AsmWriterEmitter.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-04-30 23:22:31 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-04-30 23:22:31 +0000
commita26eae64ddf607549f9e47046d46ea5b9ec648b4 (patch)
treec120bcc5dae1ed6c28cdf9b86b0dac5b9c71a65e /utils/TableGen/AsmWriterEmitter.cpp
parent19fee415f63ddb78fca703085fe56510be3e058c (diff)
downloadllvm-a26eae64ddf607549f9e47046d46ea5b9ec648b4.tar.gz
llvm-a26eae64ddf607549f9e47046d46ea5b9ec648b4.tar.bz2
llvm-a26eae64ddf607549f9e47046d46ea5b9ec648b4.tar.xz
Make DebugLoc independent of DwarfWriter.
-Replace DebugLocTuple's Source ID with CompileUnit's GlobalVariable* -Remove DwarfWriter::getOrCreateSourceID -Make necessary changes for the above (fix callsites, etc.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/AsmWriterEmitter.cpp')
-rw-r--r--utils/TableGen/AsmWriterEmitter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp
index cfe1e5d589..2c259e5ee0 100644
--- a/utils/TableGen/AsmWriterEmitter.cpp
+++ b/utils/TableGen/AsmWriterEmitter.cpp
@@ -653,11 +653,11 @@ void AsmWriterEmitter::run(std::ostream &O) {
<< " DW->ShouldEmitDwarfDebug() && OptLevel != CodeGenOpt::None) {\n"
<< " DebugLoc CurDL = MI->getDebugLoc();\n\n"
<< " if (!CurDL.isUnknown()) {\n"
- << " static DebugLocTuple PrevDLT(~0U, ~0U, ~0U);\n"
+ << " static DebugLocTuple PrevDLT(0, ~0U, ~0U);\n"
<< " DebugLocTuple CurDLT = MF->getDebugLocTuple(CurDL);\n\n"
- << " if (PrevDLT.Src != ~0U && PrevDLT != CurDLT)\n"
+ << " if (PrevDLT.CompileUnit != 0 && PrevDLT != CurDLT)\n"
<< " printLabel(DW->RecordSourceLine(CurDLT.Line, CurDLT.Col,\n"
- << " CurDLT.Src));\n\n"
+ << " DICompileUnit(CurDLT.CompileUnit)));\n\n"
<< " PrevDLT = CurDLT;\n"
<< " }\n"
<< " }\n\n";