aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-03-14 00:01:35 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-03-14 00:01:35 +0000
commita18988518869a84cb4d6510e265b1fb1a52268d1 (patch)
treef6e3ca58d50f84a62a2aaee7a7bfe4b0a098da53 /lib/Support
parenta03d366c8887755080cf21e11c43d76d22610fdf (diff)
downloadexternal_llvm-a18988518869a84cb4d6510e265b1fb1a52268d1.zip
external_llvm-a18988518869a84cb4d6510e265b1fb1a52268d1.tar.gz
external_llvm-a18988518869a84cb4d6510e265b1fb1a52268d1.tar.bz2
Move APInt::operator! inline, it's small and fuses well with surrounding code when inlined.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152688 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/APInt.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp
index e5423f1..c5713a0 100644
--- a/lib/Support/APInt.cpp
+++ b/lib/Support/APInt.cpp
@@ -457,16 +457,6 @@ APInt APInt::XorSlowCase(const APInt& RHS) const {
return APInt(val, getBitWidth()).clearUnusedBits();
}
-bool APInt::operator !() const {
- if (isSingleWord())
- return !VAL;
-
- for (unsigned i = 0; i < getNumWords(); ++i)
- if (pVal[i])
- return false;
- return true;
-}
-
APInt APInt::operator*(const APInt& RHS) const {
assert(BitWidth == RHS.BitWidth && "Bit widths must be the same");
if (isSingleWord())