aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-04-21 22:32:27 +0000
committerCraig Topper <craig.topper@gmail.com>2017-04-21 22:32:27 +0000
commitfeaa5514db0e622b667583b481479acc06bf9252 (patch)
tree252ef50a0effdc500e053b002ee9221b464168ba /clang/lib/Frontend/CompilerInvocation.cpp
parent19ce7adc7fcf900a78d6b61875b0920085603ba8 (diff)
downloadllvm-feaa5514db0e622b667583b481479acc06bf9252.zip
llvm-feaa5514db0e622b667583b481479acc06bf9252.tar.gz
llvm-feaa5514db0e622b667583b481479acc06bf9252.tar.bz2
[APSInt] Use APInt::compare and APInt::compareSigned to implement APSInt::compareValue
APInt just got compare methods that return -1, 0, or 1 instead of just having ult/slt and eq. This patch uses these methods to implement APSInt::compareValues so that we don't have to call do an equal comparison and then possibly a second less than comparison. Differential Revision: https://reviews.llvm.org/D32381 llvm-svn: 301053
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions