Avoid including DebugInfo.h in AsmPrinter.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93864 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel
2010-01-19 06:09:04 +00:00
parent 8ad9a77501
commit c99fd879c0
6 changed files with 8 additions and 4 deletions

View File

@ -1512,14 +1512,14 @@ void AsmPrinter::processDebugLoc(const MachineInstr *MI,
return;
if (BeforePrintingInsn) {
if (CurDLT.getNode() != PrevDLT.getNode()) {
if (CurDLT.getNode() != PrevDLT) {
unsigned L = DW->RecordSourceLine(CurDLT.getLineNumber(),
CurDLT.getColumnNumber(),
CurDLT.getScope().getNode());
printLabel(L);
O << '\n';
DW->BeginScope(MI, L);
PrevDLT = CurDLT;
PrevDLT = CurDLT.getNode();
}
} else {
// After printing instruction