Change interface to DwarfWriter.
llvm-svn: 26991
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";
}