diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-20 17:11:38 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-20 17:11:38 +0000 |
commit | 5078f84c82814e4d33846f9ef54281619d362f8a (patch) | |
tree | 921b04304283dd557b56cc489695298c0569ae12 /lib/VMCore/AsmWriter.cpp | |
parent | b255b88f06b81523c64369fe686fedab0225de54 (diff) | |
download | llvm-5078f84c82814e4d33846f9ef54281619d362f8a.tar.gz llvm-5078f84c82814e4d33846f9ef54281619d362f8a.tar.bz2 llvm-5078f84c82814e4d33846f9ef54281619d362f8a.tar.xz |
Rename hasNoUnsignedOverflow and hasNoSignedOverflow to hasNoUnsignedWrap
and hasNoSignedWrap, for consistency with the nuw and nsw properties.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index c79c427ba8..9c3f76f0d0 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -895,9 +895,9 @@ static void WriteMDNodes(formatted_raw_ostream &Out, TypePrinting &TypePrinter, static void WriteOptimizationInfo(raw_ostream &Out, const User *U) { if (const OverflowingBinaryOperator *OBO = dyn_cast<OverflowingBinaryOperator>(U)) { - if (OBO->hasNoUnsignedOverflow()) + if (OBO->hasNoUnsignedWrap()) Out << " nuw"; - if (OBO->hasNoSignedOverflow()) + if (OBO->hasNoSignedWrap()) Out << " nsw"; } else if (const SDivOperator *Div = dyn_cast<SDivOperator>(U)) { if (Div->isExact()) |