Author: evancheng Date: Fri Nov 16 18:31:16 2007 New Revision: 44197 URL: http://llvm.org/viewvc/llvm-project?rev=44197&view=rev Log: Shrinkfy.
Modified: llvm/trunk/include/llvm/CodeGen/MachineInstr.h Modified: llvm/trunk/include/llvm/CodeGen/MachineInstr.h URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineInstr.h?rev=44197&r1=44196&r2=44197&view=diff ============================================================================== --- llvm/trunk/include/llvm/CodeGen/MachineInstr.h (original) +++ llvm/trunk/include/llvm/CodeGen/MachineInstr.h Fri Nov 16 18:31:16 2007 @@ -79,7 +79,7 @@ /// subReg - SubRegister number, only valid for MO_Register. A value of 0 /// indicates the MO_Register has no subReg. - unsigned subReg; + unsigned char subReg; } auxInfo; MachineOperand() {} @@ -188,7 +188,7 @@ } unsigned getSubReg() const { assert(isRegister() && "Wrong MachineOperand accessor"); - return auxInfo.subReg; + return (unsigned)auxInfo.subReg; } const char *getSymbolName() const { assert(isExternalSymbol() && "Wrong MachineOperand accessor"); @@ -277,7 +277,7 @@ } void setSubReg(unsigned subReg) { assert(isRegister() && "Wrong MachineOperand accessor"); - auxInfo.subReg = subReg; + auxInfo.subReg = (unsigned char)subReg; } void setConstantPoolIndex(unsigned Idx) { assert(isConstantPoolIndex() && "Wrong MachineOperand accessor"); @@ -472,7 +472,7 @@ Op.IsKill = IsKill; Op.IsDead = IsDead; Op.contents.RegNo = Reg; - Op.auxInfo.subReg = SubReg; + Op.auxInfo.subReg = (unsigned char)SubReg; } /// addImmOperand - Add a zero extended constant argument to the _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits