summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-04 07:48:20 +0000
committerChris Lattner <sabre@nondot.org>2010-04-04 07:48:20 +0000
commit1198002c8105c08a4e242396746775d288bf0a52 (patch)
treee51708ff1b7e06972ef968aaa9bd12ab62d6ea0a /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parentef8240bbacec2d27c0991c14de211011831c3e16 (diff)
downloadbcm5719-llvm-1198002c8105c08a4e242396746775d288bf0a52.tar.gz
bcm5719-llvm-1198002c8105c08a4e242396746775d288bf0a52.zip
remove the raw_ostream from various dwarf printing things.
The only thing left is LEB printing, which uses EmitRawText for now. llvm-svn: 100325
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 9084456c8f4..07b35e2ba38 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -298,8 +298,8 @@ DbgScope::~DbgScope() {
} // end llvm namespace
-DwarfDebug::DwarfDebug(raw_ostream &OS, AsmPrinter *A, const MCAsmInfo *T)
- : DwarfPrinter(OS, A, T), ModuleCU(0),
+DwarfDebug::DwarfDebug(AsmPrinter *A)
+ : DwarfPrinter(A), ModuleCU(0),
AbbreviationsSet(InitAbbreviationsSetSize), Abbreviations(),
DIEBlocks(), SectionSourceLines(), didInitial(false), shouldEmit(false),
CurrentFnDbgScope(0), DebugTimer(0) {
@@ -1780,7 +1780,7 @@ void DwarfDebug::constructSubprogramDIE(MDNode *N) {
/// beginModule - Emit all Dwarf sections that should come prior to the
/// content. Create global DIEs and emit initial debug info sections.
/// This is inovked by the target AsmPrinter.
-void DwarfDebug::beginModule(Module *M, MachineModuleInfo *mmi) {
+void DwarfDebug::beginModule(Module *M) {
this->M = M;
if (!MAI->doesSupportDebugInformation())
@@ -1809,7 +1809,7 @@ void DwarfDebug::beginModule(Module *M, MachineModuleInfo *mmi) {
E = DbgFinder.global_variable_end(); I != E; ++I)
constructGlobalVariableDIE(*I);
- MMI = mmi;
+ MMI = Asm->MMI;
shouldEmit = true;
MMI->setDebugInfoAvailability(true);
OpenPOWER on IntegriCloud