diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-04-30 23:22:31 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-04-30 23:22:31 +0000 |
| commit | a5037484a4999e2f4e15b5e97da2a4d47ac22576 (patch) | |
| tree | befe0187d86d03c253605879ae39ad5e08fbe36c /llvm/utils/TableGen/AsmWriterEmitter.cpp | |
| parent | 5e965472b95824ea251c7adfa7205d22d3fcaa05 (diff) | |
| download | bcm5719-llvm-a5037484a4999e2f4e15b5e97da2a4d47ac22576.tar.gz bcm5719-llvm-a5037484a4999e2f4e15b5e97da2a4d47ac22576.zip | |
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.)
llvm-svn: 70520
Diffstat (limited to 'llvm/utils/TableGen/AsmWriterEmitter.cpp')
| -rw-r--r-- | llvm/utils/TableGen/AsmWriterEmitter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/AsmWriterEmitter.cpp b/llvm/utils/TableGen/AsmWriterEmitter.cpp index cfe1e5d589c..2c259e5ee0c 100644 --- a/llvm/utils/TableGen/AsmWriterEmitter.cpp +++ b/llvm/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"; |

