diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-02-19 08:06:12 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-02-19 08:06:12 +0000 |
commit | 249e1e4e2742977a4e3a5ba336b83168a4af43c0 (patch) | |
tree | 4ff8d05277c10b4e5fba0334a6c8c3b946362a34 /utils/TableGen | |
parent | 5d24957f4e650fea82d0d1a40f844ecfb0360de3 (diff) | |
download | external_llvm-249e1e4e2742977a4e3a5ba336b83168a4af43c0.zip external_llvm-249e1e4e2742977a4e3a5ba336b83168a4af43c0.tar.gz external_llvm-249e1e4e2742977a4e3a5ba336b83168a4af43c0.tar.bz2 |
Forgot to check that debug information is supported.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65034 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/AsmWriterEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp index 3b66b94..6d2fa55 100644 --- a/utils/TableGen/AsmWriterEmitter.cpp +++ b/utils/TableGen/AsmWriterEmitter.cpp @@ -640,7 +640,7 @@ void AsmWriterEmitter::run(std::ostream &O) { } O << "\";\n\n"; - O << " {\n" + O << " if (TAI->doesSupportDebugInformation()) {\n" << " const MachineFunction *MF = MI->getParent()->getParent();\n" << " static DebugLoc PrevDL = DebugLoc::getUnknownLoc();\n" << " DebugLoc CurDL = MI->getDebugLoc();\n\n" @@ -649,7 +649,7 @@ void AsmWriterEmitter::run(std::ostream &O) { << " printLabel(DW->RecordSourceLine(DLT.Line, DLT.Col, DLT.Src));\n" << " }\n\n" << " PrevDL = CurDL;\n" - << " }\n"; + << " }\n\n"; O << " if (MI->getOpcode() == TargetInstrInfo::INLINEASM) {\n" << " O << \"\\t\";\n" |