1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Forgot to check that debug information is supported.

llvm-svn: 65034
This commit is contained in:
Bill Wendling 2009-02-19 08:06:12 +00:00
parent ed12d48f3d
commit a7909157af

View File

@ -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"