summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-12-13 22:00:19 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-12-13 22:00:19 +0000
commite1fad2b5600ecb9dec92544a827277602e3f1055 (patch)
treedb2972cdca85bdb47fbe205f43aa4f1aca33d3e8 /llvm/lib/Support/APInt.cpp
parenta8df53f4ad63e463671eff757471962f77343d76 (diff)
downloadbcm5719-llvm-e1fad2b5600ecb9dec92544a827277602e3f1055.tar.gz
bcm5719-llvm-e1fad2b5600ecb9dec92544a827277602e3f1055.zip
Remove APInt::extractBit since it is already implemented via operator[]. Change tests for extractBit to test operator[].
llvm-svn: 197277
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r--llvm/lib/Support/APInt.cpp8
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 ||
OpenPOWER on IntegriCloud