diff options
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r-- | llvm/lib/Support/APInt.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index 731c8cc9cae..89f96bd5774 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/lib/Support/APInt.cpp @@ -607,14 +607,6 @@ void APInt::flipBit(unsigned bitPosition) { else setBit(bitPosition); } -bool APInt::extractBit(unsigned bitPosition) const { - assert(bitPosition < BitWidth && "Out of the bit-width range!"); - if (isSingleWord()) - return VAL & maskBit(bitPosition); - else - return pVal[whichWord(bitPosition)] & maskBit(bitPosition); -} - unsigned APInt::getBitsNeeded(StringRef str, uint8_t radix) { assert(!str.empty() && "Invalid string length"); assert((radix == 10 || radix == 8 || radix == 16 || radix == 2 || |