Change interface to DwarfWriter.
llvm-svn: 26991
diff --git a/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp b/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp
index 9c5a835..5b576b7 100755
--- a/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp
+++ b/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp
@@ -37,7 +37,7 @@
if (forDarwin) {
// Emit pre-function debug information.
- DW.BeginFunction(MF);
+ DW.BeginFunction(&MF);
}
// Print out constants referenced by the function
@@ -93,7 +93,7 @@
if (forDarwin) {
// Emit post-function debug information.
- DW.EndFunction(MF);
+ DW.EndFunction();
}
// We didn't modify anything.
diff --git a/llvm/lib/Target/X86/X86AsmPrinter.cpp b/llvm/lib/Target/X86/X86AsmPrinter.cpp
index cf2be95..990951e 100644
--- a/llvm/lib/Target/X86/X86AsmPrinter.cpp
+++ b/llvm/lib/Target/X86/X86AsmPrinter.cpp
@@ -76,7 +76,7 @@
if (forDarwin) {
// Emit initial debug information.
- DW.BeginModule(M);
+ DW.BeginModule(&M);
}
return AsmPrinter::doInitialization(M);
@@ -191,13 +191,13 @@
}
// Emit initial debug information.
- DW.EndModule(M);
+ DW.EndModule();
// 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
// implementation of multiple entry points). If this doesn't occur, the
- // linker can safely perform dead code stripping. Since LLVM never generates
- // code that does this, it is always safe to set.
+ // linker can safely perform dead code stripping. Since LLVM never
+ // generates code that does this, it is always safe to set.
O << "\t.subsections_via_symbols\n";
}
diff --git a/llvm/lib/Target/X86/X86IntelAsmPrinter.cpp b/llvm/lib/Target/X86/X86IntelAsmPrinter.cpp
index 2980bfe..c49f892 100755
--- a/llvm/lib/Target/X86/X86IntelAsmPrinter.cpp
+++ b/llvm/lib/Target/X86/X86IntelAsmPrinter.cpp
@@ -36,7 +36,7 @@
if (forDarwin) {
// Emit pre-function debug information.
- DW.BeginFunction(MF);
+ DW.BeginFunction(&MF);
}
// Print out constants referenced by the function
@@ -68,7 +68,7 @@
if (forDarwin) {
// Emit post-function debug information.
- DW.EndFunction(MF);
+ DW.EndFunction();
}
// We didn't modify anything.