aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorArgiris Kirtzidis <akyrtzi@gmail.com>2009-05-03 23:27:19 +0000
committerArgiris Kirtzidis <akyrtzi@gmail.com>2009-05-03 23:27:19 +0000
commit5e3ef11e85fa7208d4b08dea296680f93a46fbe0 (patch)
tree79471ac3e3b8eb4d7bc6328dcf05148e23e4903a /utils
parent678ac20f0e0c39247a3172c371d7b15e0dc5cb47 (diff)
downloadexternal_llvm-5e3ef11e85fa7208d4b08dea296680f93a46fbe0.zip
external_llvm-5e3ef11e85fa7208d4b08dea296680f93a46fbe0.tar.gz
external_llvm-5e3ef11e85fa7208d4b08dea296680f93a46fbe0.tar.bz2
Revert r70803 for now, it causes a regression.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/AsmWriterEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp
index 3937fd1..2c259e5 100644
--- a/utils/TableGen/AsmWriterEmitter.cpp
+++ b/utils/TableGen/AsmWriterEmitter.cpp
@@ -650,12 +650,12 @@ void AsmWriterEmitter::run(std::ostream &O) {
O << "\";\n\n";
O << " if (TAI->doesSupportDebugInformation() &&\n"
- << " DW->ShouldEmitDwarfDebug()) {\n"
+ << " DW->ShouldEmitDwarfDebug() && OptLevel != CodeGenOpt::None) {\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"
+ << " if (PrevDLT.CompileUnit != 0 && PrevDLT != CurDLT)\n"
<< " printLabel(DW->RecordSourceLine(CurDLT.Line, CurDLT.Col,\n"
<< " DICompileUnit(CurDLT.CompileUnit)));\n\n"
<< " PrevDLT = CurDLT;\n"