summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-20 17:11:38 +0000
committerDan Gohman <gohman@apple.com>2009-08-20 17:11:38 +0000
commit16f5415f5b843a43c5cafc66111c1941ae34d083 (patch)
tree81e0db6431c8799b9038f18b486ccbda78cd1224 /llvm/lib/AsmParser
parent2de532c1327767f9e8ae036f1bc0a3cbae11fe65 (diff)
downloadbcm5719-llvm-16f5415f5b843a43c5cafc66111c1941ae34d083.tar.gz
bcm5719-llvm-16f5415f5b843a43c5cafc66111c1941ae34d083.zip
Rename hasNoUnsignedOverflow and hasNoSignedOverflow to hasNoUnsignedWrap
and hasNoSignedWrap, for consistency with the nuw and nsw properties. llvm-svn: 79539
Diffstat (limited to 'llvm/lib/AsmParser')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index ec7bc650c45..0b35335965b 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -2082,9 +2082,9 @@ bool LLParser::ParseValID(ValID &ID) {
return Error(ID.Loc,"constexpr requires integer, fp, or vector operands");
Constant *C = ConstantExpr::get(Opc, Val0, Val1);
if (NUW)
- cast<OverflowingBinaryOperator>(C)->setHasNoUnsignedOverflow(true);
+ cast<OverflowingBinaryOperator>(C)->setHasNoUnsignedWrap(true);
if (NSW)
- cast<OverflowingBinaryOperator>(C)->setHasNoSignedOverflow(true);
+ cast<OverflowingBinaryOperator>(C)->setHasNoSignedWrap(true);
if (Exact)
cast<SDivOperator>(C)->setIsExact(true);
ID.ConstantVal = C;
@@ -2665,9 +2665,9 @@ bool LLParser::ParseInstruction(Instruction *&Inst, BasicBlock *BB,
return Error(ModifierLoc, "nsw only applies to integer operations");
}
if (NUW)
- cast<OverflowingBinaryOperator>(Inst)->setHasNoUnsignedOverflow(true);
+ cast<OverflowingBinaryOperator>(Inst)->setHasNoUnsignedWrap(true);
if (NSW)
- cast<OverflowingBinaryOperator>(Inst)->setHasNoSignedOverflow(true);
+ cast<OverflowingBinaryOperator>(Inst)->setHasNoSignedWrap(true);
}
return Result;
}
OpenPOWER on IntegriCloud