mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Emit debug info for data-only files. This version
is X86 ATT only. llvm-svn: 53355
This commit is contained in:
parent
61f4175d64
commit
36a38a5ba1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user