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 | 44c3b9fdd416c79f4b67cde1aecfced5921efd81 (patch) | |
tree | 0d8002c19d49540943831d56faa04495b4a20f6e /lib/Target/PowerPC/PPCRegisterInfo.cpp | |
parent | fce1765a19565954b2b4629cf214b516663e7cbc (diff) | |
download | external_llvm-44c3b9fdd416c79f4b67cde1aecfced5921efd81.zip external_llvm-44c3b9fdd416c79f4b67cde1aecfced5921efd81.tar.gz external_llvm-44c3b9fdd416c79f4b67cde1aecfced5921efd81.tar.bz2 |
Change the MachineDebugInfo to MachineModuleInfo to better reflect usage
for debugging and exception handling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCRegisterInfo.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCRegisterInfo.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index 75c9261..9228b3e 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/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) : |