diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-14 00:38:15 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-14 00:38:15 +0000 |
commit | 78b505b0656ae1a8b0a7ecf2eaecf510e631d088 (patch) | |
tree | 61772f96efef7e081fd48172830900aa06087a13 /llvm/lib/Support/APInt.cpp | |
parent | d36ad667850dbcaeabcfa911420fbe3f7719d718 (diff) | |
download | bcm5719-llvm-78b505b0656ae1a8b0a7ecf2eaecf510e631d088.tar.gz bcm5719-llvm-78b505b0656ae1a8b0a7ecf2eaecf510e631d088.zip |
Move APInt::operator[] inline.
llvm-svn: 152692
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r-- | llvm/lib/Support/APInt.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index c5713a0eb17..9b81fe776a6 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/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(); |