Crude Dwarf global variable debugging.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25569 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 3ffe0d2..0b7ad95 100644
--- a/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -438,7 +438,7 @@
O << "\n\n";
// Emit pre-function debug information.
- DW.BeginFunction();
+ DW.BeginFunction(MF);
// Print out constants referenced by the function
EmitConstantPool(MF.getConstantPool());
@@ -486,7 +486,7 @@
}
// Emit post-function debug information.
- DW.EndFunction();
+ DW.EndFunction(MF);
// We didn't modify anything.
return false;
@@ -502,7 +502,7 @@
Mang->setUseQuotes(true);
// Emit initial debug information.
- DW.BeginModule();
+ DW.BeginModule(M);
return false;
}
@@ -619,7 +619,7 @@
}
// Emit initial debug information.
- DW.EndModule();
+ DW.EndModule(M);
// Funny Darwin hack: This flag tells the linker that no global symbols
// contain code that falls through to other global symbols (e.g. the obvious