aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC/PPCRegisterInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-14 07:56:48 +0000
committerChris Lattner <sabre@nondot.org>2010-03-14 07:56:48 +0000
commit359731acbae700a9590257899bf54c05fee8a9cd (patch)
tree392bb91bca2160341e109f22faa2ea9a31b7167f /lib/Target/PowerPC/PPCRegisterInfo.cpp
parent0da9841b56f5a05bc13b0650d0f491dd3920dc2e (diff)
downloadexternal_llvm-359731acbae700a9590257899bf54c05fee8a9cd.zip
external_llvm-359731acbae700a9590257899bf54c05fee8a9cd.tar.gz
external_llvm-359731acbae700a9590257899bf54c05fee8a9cd.tar.bz2
change the DBG_LABEL MachineInstr to always be created
with an MCSymbol instead of an immediate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCRegisterInfo.cpp')
-rw-r--r--lib/Target/PowerPC/PPCRegisterInfo.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp
index 31bca16..64e4e20 100644
--- a/lib/Target/PowerPC/PPCRegisterInfo.cpp
+++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp
@@ -1447,7 +1447,8 @@ PPCRegisterInfo::emitPrologue(MachineFunction &MF) const {
if (needsFrameMoves) {
// Mark effective beginning of when frame pointer becomes valid.
FrameLabelId = MMI->NextLabelID();
- BuildMI(MBB, MBBI, dl, TII.get(PPC::DBG_LABEL)).addImm(FrameLabelId);
+ BuildMI(MBB, MBBI, dl, TII.get(PPC::DBG_LABEL))
+ .addSym(MMI->getLabelSym(FrameLabelId));
// Show update of SP.
if (NegFrameSize) {
@@ -1490,7 +1491,8 @@ PPCRegisterInfo::emitPrologue(MachineFunction &MF) const {
ReadyLabelId = MMI->NextLabelID();
// Mark effective beginning of when frame pointer is ready.
- BuildMI(MBB, MBBI, dl, TII.get(PPC::DBG_LABEL)).addImm(ReadyLabelId);
+ BuildMI(MBB, MBBI, dl, TII.get(PPC::DBG_LABEL))
+ .addSym(MMI->getLabelSym(ReadyLabelId));
MachineLocation FPDst(HasFP ? (isPPC64 ? PPC::X31 : PPC::R31) :
(isPPC64 ? PPC::X1 : PPC::R1));