diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-07-09 06:36:53 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-07-09 06:36:53 +0000 |
commit | 49c8e68e4cedeea62731ce6d6d745c919be6d201 (patch) | |
tree | 434c9a5218f40faf8a1e4bc66460176962c31cad /llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp | |
parent | 88d2506ae277e81a26fed07cb5e02491c092f18c (diff) | |
download | bcm5719-llvm-49c8e68e4cedeea62731ce6d6d745c919be6d201.tar.gz bcm5719-llvm-49c8e68e4cedeea62731ce6d6d745c919be6d201.zip |
Back out 53254. It broke ppc debug info codegen.
llvm-svn: 53280
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp index ae967a8d00f..9c9dd391be7 100644 --- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -790,6 +790,9 @@ std::string DarwinAsmPrinter::getSectionForFunction(const Function &F) const { /// method to print assembly for each instruction. /// bool DarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) { + // We need this for Personality functions. + MMI = &getAnalysis<MachineModuleInfo>(); + DW.SetModuleInfo(MMI); SetupMachineFunction(MF); O << "\n\n"; @@ -884,12 +887,6 @@ bool DarwinAsmPrinter::doInitialization(Module &M) { bool Result = AsmPrinter::doInitialization(M); - // We need this for Personality functions. - // AsmPrinter::doInitialization should have done this analysis. - MMI = getAnalysisToUpdate<MachineModuleInfo>(); - assert(MMI); - DW.SetModuleInfo(MMI); - // Darwin wants symbols to be quoted if they have complex names. Mang->setUseQuotes(true); |