diff options
| author | Dale Johannesen <dalej@apple.com> | 2008-07-09 20:55:35 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2008-07-09 20:55:35 +0000 |
| commit | 605d38657ace30c01e3c76d1bad5cb2f19970701 (patch) | |
| tree | 63d8e5e1d113a25902f00a70bfc6f92cb8296052 /llvm/lib | |
| parent | bcfb41ca7d6e665fa6914230b21c6cc78638f673 (diff) | |
| download | bcm5719-llvm-605d38657ace30c01e3c76d1bad5cb2f19970701.tar.gz bcm5719-llvm-605d38657ace30c01e3c76d1bad5cb2f19970701.zip | |
Emit debug info for data-only files. This version
is X86 ATT only.
llvm-svn: 53355
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/X86ATTAsmPrinter.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp b/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp index 51fc3bb3df1..8c688f354fa 100644 --- a/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp +++ b/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp @@ -216,13 +216,6 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) { const Function *F = MF.getFunction(); unsigned CC = F->getCallingConv(); - if (TAI->doesSupportDebugInformation()) { - // Let PassManager know we need debug information and relay - // the MachineModuleInfo address on to DwarfWriter. - MMI = &getAnalysis<MachineModuleInfo>(); - DW.SetModuleInfo(MMI); - } - SetupMachineFunction(MF); O << "\n\n"; @@ -739,6 +732,14 @@ bool X86ATTAsmPrinter::doInitialization(Module &M) { bool Result = AsmPrinter::doInitialization(M); + if (TAI->doesSupportDebugInformation()) { + // Let PassManager know we need debug information and relay + // the MachineModuleInfo address on to DwarfWriter. + // AsmPrinter::doInitialization did this analysis. + MMI = getAnalysisToUpdate<MachineModuleInfo>(); + DW.SetModuleInfo(MMI); + } + // Darwin wants symbols to be quoted if they have complex names. if (Subtarget->isTargetDarwin()) Mang->setUseQuotes(true); |

