aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-03-14 00:38:15 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-03-14 00:38:15 +0000
commit69ccf9fc0b131f2c71c3d60791425cbf52392ee4 (patch)
treefed6ef05b8a05f548691acbd1480851d92fde85b /lib/Support/APInt.cpp
parenta18988518869a84cb4d6510e265b1fb1a52268d1 (diff)
downloadexternal_llvm-69ccf9fc0b131f2c71c3d60791425cbf52392ee4.zip
external_llvm-69ccf9fc0b131f2c71c3d60791425cbf52392ee4.tar.gz
external_llvm-69ccf9fc0b131f2c71c3d60791425cbf52392ee4.tar.bz2
Move APInt::operator[] inline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/APInt.cpp')
-rw-r--r--lib/Support/APInt.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp
index c5713a0..9b81fe7 100644
--- a/lib/Support/APInt.cpp
+++ b/lib/Support/APInt.cpp
@@ -484,12 +484,6 @@ APInt APInt::operator-(const APInt& RHS) const {
return Result.clearUnusedBits();
}
-bool APInt::operator[](unsigned bitPosition) const {
- assert(bitPosition < getBitWidth() && "Bit position out of bounds!");
- return (maskBit(bitPosition) &
- (isSingleWord() ? VAL : pVal[whichWord(bitPosition)])) != 0;
-}
-
bool APInt::EqualSlowCase(const APInt& RHS) const {
// Get some facts about the number of bits used in the two operands.
unsigned n1 = getActiveBits();