diff options
author | Chris Lattner <sabre@nondot.org> | 2006-05-04 17:21:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-05-04 17:21:20 +0000 |
commit | fef7a2d0f580e8c41e822dd6a200db3a862bb3ae (patch) | |
tree | 8508cb39aa55db7b0f4c1acc03bd4037a1983b02 /llvm/lib/Target/PowerPC/PPCInstrBuilder.h | |
parent | 15c52bda1d13344581ae684e2b02c7dbe4f32979 (diff) | |
download | bcm5719-llvm-fef7a2d0f580e8c41e822dd6a200db3a862bb3ae.tar.gz bcm5719-llvm-fef7a2d0f580e8c41e822dd6a200db3a862bb3ae.zip |
There shalt be only one "immediate" operand type!
llvm-svn: 28099
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrBuilder.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstrBuilder.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrBuilder.h b/llvm/lib/Target/PowerPC/PPCInstrBuilder.h index b97178f52cb..386191836bc 100644 --- a/llvm/lib/Target/PowerPC/PPCInstrBuilder.h +++ b/llvm/lib/Target/PowerPC/PPCInstrBuilder.h @@ -33,9 +33,9 @@ inline const MachineInstrBuilder& addFrameReference(const MachineInstrBuilder &MIB, int FI, int Offset = 0, bool mem = true) { if (mem) - return MIB.addSImm(Offset).addFrameIndex(FI); + return MIB.addImm(Offset).addFrameIndex(FI); else - return MIB.addFrameIndex(FI).addSImm(Offset); + return MIB.addFrameIndex(FI).addImm(Offset); } /// addConstantPoolReference - This function is used to add a reference to the @@ -47,7 +47,7 @@ addFrameReference(const MachineInstrBuilder &MIB, int FI, int Offset = 0, inline const MachineInstrBuilder& addConstantPoolReference(const MachineInstrBuilder &MIB, unsigned CPI, int Offset = 0) { - return MIB.addSImm(Offset).addConstantPoolIndex(CPI); + return MIB.addImm(Offset).addConstantPoolIndex(CPI); } } // End llvm namespace |