[llvm-commits] [llvm] r53355 - /llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp
Dale Johannesen
dalej at apple.com
Wed Jul 9 13:55:36 PDT 2008
Author: johannes
Date: Wed Jul 9 15:55:35 2008
New Revision: 53355
URL: http://llvm.org/viewvc/llvm-project?rev=53355&view=rev
Log:
Emit debug info for data-only files. This version
is X86 ATT only.
Modified:
llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp?rev=53355&r1=53354&r2=53355&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp Wed Jul 9 15:55:35 2008
@@ -216,13 +216,6 @@
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 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);
More information about the llvm-commits
mailing list