diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-11-17 00:31:16 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-11-17 00:31:16 +0000 |
commit | 38b0be01ded327a50ac600dd7710016b2326d841 (patch) | |
tree | ff4b75c43c9f6fcf6753450d840e47f69db3687f /include | |
parent | 6542481a6dca93fa931991ea99b61363345b6eeb (diff) | |
download | external_llvm-38b0be01ded327a50ac600dd7710016b2326d841.zip external_llvm-38b0be01ded327a50ac600dd7710016b2326d841.tar.gz external_llvm-38b0be01ded327a50ac600dd7710016b2326d841.tar.bz2 |
Shrinkfy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44197 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 93b739d..6e013d0 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -79,7 +79,7 @@ private: /// 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 @@ public: } 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 @@ public: } 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 @@ public: 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 |