aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-10-13 23:28:53 +0000
committerDevang Patel <dpatel@apple.com>2009-10-13 23:28:53 +0000
commit1619dc3b9ee2573c481591764c2d26d5ff16b483 (patch)
tree7c8a15e6008c918bc92a590e438862b1190f0b86 /lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent228ebd0f4cf9207d32d61ef4b11b81736895dc09 (diff)
downloadexternal_llvm-1619dc3b9ee2573c481591764c2d26d5ff16b483.tar.gz
external_llvm-1619dc3b9ee2573c481591764c2d26d5ff16b483.tar.bz2
external_llvm-1619dc3b9ee2573c481591764c2d26d5ff16b483.zip
s/DebugLoc.CompileUnit/DebugLoc.Scope/g
s/DebugLoc.InlinedLoc/DebugLoc.InlinedAtLoc/g git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 3a7fe0e24e..8bc5ef91cd 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1362,9 +1362,9 @@ void AsmPrinter::processDebugLoc(const MachineInstr *MI,
if (!DL.isUnknown()) {
DebugLocTuple CurDLT = MF->getDebugLocTuple(DL);
if (BeforePrintingInsn) {
- if (CurDLT.CompileUnit != 0 && PrevDLT != CurDLT) {
+ if (CurDLT.Scope != 0 && PrevDLT != CurDLT) {
unsigned L = DW->RecordSourceLine(CurDLT.Line, CurDLT.Col,
- CurDLT.CompileUnit);
+ CurDLT.Scope);
printLabel(L);
#ifdef ATTACH_DEBUG_INFO_TO_AN_INSN
DW->SetDbgScopeBeginLabels(MI, L);
@@ -1773,9 +1773,10 @@ void AsmPrinter::EmitComments(const MachineInstr &MI) const {
// Print source line info.
O.PadToColumn(MAI->getCommentColumn());
O << MAI->getCommentString() << " SrcLine ";
- if (DLT.CompileUnit) {
- DICompileUnit CU(DLT.CompileUnit);
- O << CU.getFilename() << " ";
+ if (DLT.Scope) {
+ DICompileUnit CU(DLT.Scope);
+ if (!CU.isNull())
+ O << CU.getFilename() << " ";
}
O << DLT.Line;
if (DLT.Col != 0)