From: Andrew Ng Date: Thu, 30 Mar 2017 13:17:25 +0000 (+0000) Subject: Test commit. X-Git-Tag: llvmorg-5.0.0-rc1~8886 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84b07dbd75a133d1f7437b8c23c2c83f4c95ad87;p=platform%2Fupstream%2Fllvm.git Test commit. Correct assertion messages in MachineOperand for some of the setters. llvm-svn: 299075 --- diff --git a/llvm/include/llvm/CodeGen/MachineOperand.h b/llvm/include/llvm/CodeGen/MachineOperand.h index bde72bf..81b4312 100644 --- a/llvm/include/llvm/CodeGen/MachineOperand.h +++ b/llvm/include/llvm/CodeGen/MachineOperand.h @@ -356,7 +356,7 @@ public: void setReg(unsigned Reg); void setSubReg(unsigned subReg) { - assert(isReg() && "Wrong MachineOperand accessor"); + assert(isReg() && "Wrong MachineOperand mutator"); SubReg_TargetFlags = subReg; assert(SubReg_TargetFlags == subReg && "SubReg out of range"); } @@ -379,38 +379,38 @@ public: void setIsDef(bool Val = true); void setImplicit(bool Val = true) { - assert(isReg() && "Wrong MachineOperand accessor"); + assert(isReg() && "Wrong MachineOperand mutator"); IsImp = Val; } void setIsKill(bool Val = true) { - assert(isReg() && !IsDef && "Wrong MachineOperand accessor"); + assert(isReg() && !IsDef && "Wrong MachineOperand mutator"); assert((!Val || !isDebug()) && "Marking a debug operation as kill"); IsKill = Val; } void setIsDead(bool Val = true) { - assert(isReg() && IsDef && "Wrong MachineOperand accessor"); + assert(isReg() && IsDef && "Wrong MachineOperand mutator"); IsDead = Val; } void setIsUndef(bool Val = true) { - assert(isReg() && "Wrong MachineOperand accessor"); + assert(isReg() && "Wrong MachineOperand mutator"); IsUndef = Val; } void setIsInternalRead(bool Val = true) { - assert(isReg() && "Wrong MachineOperand accessor"); + assert(isReg() && "Wrong MachineOperand mutator"); IsInternalRead = Val; } void setIsEarlyClobber(bool Val = true) { - assert(isReg() && IsDef && "Wrong MachineOperand accessor"); + assert(isReg() && IsDef && "Wrong MachineOperand mutator"); IsEarlyClobber = Val; } void setIsDebug(bool Val = true) { - assert(isReg() && !IsDef && "Wrong MachineOperand accessor"); + assert(isReg() && !IsDef && "Wrong MachineOperand mutator"); IsDebug = Val; } @@ -539,19 +539,19 @@ public: void setOffset(int64_t Offset) { assert((isGlobal() || isSymbol() || isMCSymbol() || isCPI() || isTargetIndex() || isBlockAddress()) && - "Wrong MachineOperand accessor"); + "Wrong MachineOperand mutator"); SmallContents.OffsetLo = unsigned(Offset); Contents.OffsetedInfo.OffsetHi = int(Offset >> 32); } void setIndex(int Idx) { assert((isFI() || isCPI() || isTargetIndex() || isJTI()) && - "Wrong MachineOperand accessor"); + "Wrong MachineOperand mutator"); Contents.OffsetedInfo.Val.Index = Idx; } void setMBB(MachineBasicBlock *MBB) { - assert(isMBB() && "Wrong MachineOperand accessor"); + assert(isMBB() && "Wrong MachineOperand mutator"); Contents.MBB = MBB; }