summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-11 00:48:23 +0000
committerChris Lattner <sabre@nondot.org>2006-07-11 00:48:23 +0000
commit71227c23b181837174204b4d115c98de2861e170 (patch)
treeee2b05d790f0d2b2a4cb4147857afdc3e74ed20f /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
parentbbf8990ef7531b2aed151e970bb3087ed38531f4 (diff)
downloadbcm5719-llvm-71227c23b181837174204b4d115c98de2861e170.tar.gz
bcm5719-llvm-71227c23b181837174204b4d115c98de2861e170.zip
In 64-bit mode, 64-bit GPRs are callee saved, not 32-bit ones.
llvm-svn: 29096
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
index a2ba4fed3c7..83a0aaadb8f 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
@@ -19,7 +19,8 @@
using namespace llvm;
PPCInstrInfo::PPCInstrInfo(PPCTargetMachine &tm)
- : TargetInstrInfo(PPCInsts, sizeof(PPCInsts)/sizeof(PPCInsts[0])), TM(tm) {}
+ : TargetInstrInfo(PPCInsts, sizeof(PPCInsts)/sizeof(PPCInsts[0])), TM(tm),
+ RI(*TM.getSubtargetImpl()) {}
/// getPointerRegClass - Return the register class to use to hold pointers.
/// This is used for addressing modes.
OpenPOWER on IntegriCloud