diff options
| author | Jim Laskey <jlaskey@mac.com> | 2007-01-26 21:22:28 +0000 |
|---|---|---|
| committer | Jim Laskey <jlaskey@mac.com> | 2007-01-26 21:22:28 +0000 |
| commit | c56315c2b538fb5f95178254fe8a4f10578487c4 (patch) | |
| tree | 5935e37c5d5ce7b31f395b025ee42da0766ae0a5 /llvm/lib/Target/PowerPC | |
| parent | d45cd5eb812e35fbf9c7003fade2a6747ac4d652 (diff) | |
| download | bcm5719-llvm-c56315c2b538fb5f95178254fe8a4f10578487c4.tar.gz bcm5719-llvm-c56315c2b538fb5f95178254fe8a4f10578487c4.zip | |
Change the MachineDebugInfo to MachineModuleInfo to better reflect usage
for debugging and exception handling.
llvm-svn: 33550
Diffstat (limited to 'llvm/lib/Target/PowerPC')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp | 10 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp | 16 |
2 files changed, 13 insertions, 13 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp index 81926edb6a5..3945d1ac372 100644 --- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -27,7 +27,7 @@ #include "llvm/Assembly/Writer.h" #include "llvm/CodeGen/AsmPrinter.h" #include "llvm/CodeGen/DwarfWriter.h" -#include "llvm/CodeGen/MachineDebugInfo.h" +#include "llvm/CodeGen/MachineModuleInfo.h" #include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/CodeGen/MachineInstr.h" #include "llvm/Support/Mangler.h" @@ -302,7 +302,7 @@ namespace { void getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesAll(); - AU.addRequired<MachineDebugInfo>(); + AU.addRequired<MachineModuleInfo>(); PPCAsmPrinter::getAnalysisUsage(AU); } @@ -332,7 +332,7 @@ namespace { void getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesAll(); - AU.addRequired<MachineDebugInfo>(); + AU.addRequired<MachineModuleInfo>(); PPCAsmPrinter::getAnalysisUsage(AU); } @@ -528,7 +528,7 @@ void PPCAsmPrinter::printMachineInstruction(const MachineInstr *MI) { /// method to print assembly for each instruction. /// bool LinuxAsmPrinter::runOnMachineFunction(MachineFunction &MF) { - DW.SetDebugInfo(&getAnalysis<MachineDebugInfo>()); + DW.SetModuleInfo(&getAnalysis<MachineModuleInfo>()); SetupMachineFunction(MF); O << "\n\n"; @@ -738,7 +738,7 @@ std::string DarwinAsmPrinter::getSectionForFunction(const Function &F) const { /// method to print assembly for each instruction. /// bool DarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) { - DW.SetDebugInfo(&getAnalysis<MachineDebugInfo>()); + DW.SetModuleInfo(&getAnalysis<MachineModuleInfo>()); SetupMachineFunction(MF); O << "\n\n"; diff --git a/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp b/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp index 75c92615ea5..9228b3e68ec 100644 --- a/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -22,7 +22,7 @@ #include "llvm/Type.h" #include "llvm/CodeGen/ValueTypes.h" #include "llvm/CodeGen/MachineInstrBuilder.h" -#include "llvm/CodeGen/MachineDebugInfo.h" +#include "llvm/CodeGen/MachineModuleInfo.h" #include "llvm/CodeGen/MachineFunction.h" #include "llvm/CodeGen/MachineFrameInfo.h" #include "llvm/CodeGen/MachineLocation.h" @@ -754,10 +754,10 @@ void PPCRegisterInfo::emitPrologue(MachineFunction &MF) const { MachineBasicBlock &MBB = MF.front(); // Prolog goes in entry BB MachineBasicBlock::iterator MBBI = MBB.begin(); MachineFrameInfo *MFI = MF.getFrameInfo(); - MachineDebugInfo *DebugInfo = MFI->getMachineDebugInfo(); + MachineModuleInfo *MMI = MFI->getMachineModuleInfo(); // Prepare for debug frame info. - bool hasInfo = DebugInfo && DebugInfo->hasInfo(); + bool hasDebugInfo = MMI && MMI->hasDebugInfo(); unsigned FrameLabelId = 0; // Scan the prolog, looking for an UPDATE_VRSAVE instruction. If we find it, @@ -819,9 +819,9 @@ void PPCRegisterInfo::emitPrologue(MachineFunction &MF) const { unsigned TargetAlign = MF.getTarget().getFrameInfo()->getStackAlignment(); unsigned MaxAlign = MFI->getMaxAlignment(); - if (hasInfo) { + if (hasDebugInfo) { // Mark effective beginning of when frame pointer becomes valid. - FrameLabelId = DebugInfo->NextLabelID(); + FrameLabelId = MMI->NextLabelID(); BuildMI(MBB, MBBI, TII.get(PPC::LABEL)).addImm(FrameLabelId); } @@ -870,8 +870,8 @@ void PPCRegisterInfo::emitPrologue(MachineFunction &MF) const { } } - if (hasInfo) { - std::vector<MachineMove> &Moves = DebugInfo->getFrameMoves(); + if (hasDebugInfo) { + std::vector<MachineMove> &Moves = MMI->getFrameMoves(); if (NegFrameSize) { // Show update of SP. @@ -901,7 +901,7 @@ void PPCRegisterInfo::emitPrologue(MachineFunction &MF) const { } // Mark effective beginning of when frame pointer is ready. - unsigned ReadyLabelId = DebugInfo->NextLabelID(); + unsigned ReadyLabelId = MMI->NextLabelID(); BuildMI(MBB, MBBI, TII.get(PPC::LABEL)).addImm(ReadyLabelId); MachineLocation FPDst(HasFP ? (IsPPC64 ? PPC::X31 : PPC::R31) : |

