X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTarget%2FPowerPC%2FPPCInstrBuilder.h;h=386191836bc7a1bde7cfa6dff97e7e16451095f1;hb=ba4733d901b1c2b994f66707657342b8c81c92bc;hp=d400acf0df3044f7b407f50cff4a69115a2ff1d0;hpb=e62cd37c2add34dc6caa9cf9a7a0d5b9836694d7;p=oota-llvm.git diff --git a/lib/Target/PowerPC/PPCInstrBuilder.h b/lib/Target/PowerPC/PPCInstrBuilder.h index d400acf0df3..386191836bc 100644 --- a/lib/Target/PowerPC/PPCInstrBuilder.h +++ b/lib/Target/PowerPC/PPCInstrBuilder.h @@ -1,10 +1,10 @@ -//===-- PowerPCInstrBuilder.h - Aides for building PPC insts ----*- C++ -*-===// -// +//===-- PPCInstrBuilder.h - Aides for building PPC insts --------*- C++ -*-===// +// // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. -// +// //===----------------------------------------------------------------------===// // // This file exposes functions that may be used with BuildMI from the @@ -30,12 +30,12 @@ namespace llvm { /// This allows a constant offset to be specified as well... /// inline const MachineInstrBuilder& -addFrameReference(const MachineInstrBuilder &MIB, int FI, int Offset = 0, +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