diff options
author | Devang Patel <dpatel@apple.com> | 2009-06-25 22:36:02 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-06-25 22:36:02 +0000 |
commit | 208622db8a3f1d796bfaf61f8d4f41b6613a71bd (patch) | |
tree | 7946a916a00d45c91afb890bac3dc6812b8063a6 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 9e03cbefc5b3b8772a18d9bd25593ce62137ac85 (diff) |
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74215 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 7f9894d39e..e8a42b6075 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1371,9 +1371,12 @@ bool DwarfDebug::ConstructSubprograms() { return Result; } -/// SetDebugInfo - Create global DIEs and emit initial debug info sections. -/// This is inovked by the target AsmPrinter. -void DwarfDebug::SetDebugInfo(MachineModuleInfo *mmi) { + /// 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) { + this->M = M; + if (TimePassesIsEnabled) DebugTimer->startTimer(); |