diff options
author | Chris Lattner <sabre@nondot.org> | 2006-07-11 00:48:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-07-11 00:48:23 +0000 |
commit | 804e06704261f233111913a047ef7f7dec1b8725 (patch) | |
tree | a6630d92dacd6b123d3fb58c3ae2dc768d788359 /lib/Target/PowerPC/PPCInstrInfo.cpp | |
parent | b64ab8769ef54d8087fcebb81a76ea34db004ae7 (diff) |
In 64-bit mode, 64-bit GPRs are callee saved, not 32-bit ones.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29096 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCInstrInfo.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCInstrInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.cpp b/lib/Target/PowerPC/PPCInstrInfo.cpp index a2ba4fed3c..83a0aaadb8 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/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. |