summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-17 04:58:58 +0000
committerChris Lattner <sabre@nondot.org>2008-08-17 04:58:58 +0000
commit8fcea67ae9237c84256e8bb970fc8b9b26dcd98b (patch)
tree29bb7dbff9bd02c60c10e4321d2c72159523c971 /llvm/lib/Support/APInt.cpp
parent033935df550a757b6ac3d8ef818abcec141e2bd4 (diff)
downloadbcm5719-llvm-8fcea67ae9237c84256e8bb970fc8b9b26dcd98b.tar.gz
bcm5719-llvm-8fcea67ae9237c84256e8bb970fc8b9b26dcd98b.zip
remove a dead APInt ctor.
llvm-svn: 54869
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r--llvm/lib/Support/APInt.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp
index 167d56955e9..d579ae0965b 100644
--- a/llvm/lib/Support/APInt.cpp
+++ b/llvm/lib/Support/APInt.cpp
@@ -94,14 +94,6 @@ APInt::APInt(uint32_t numbits, const char StrStart[], uint32_t slen,
fromString(numbits, StrStart, slen, radix);
}
-APInt::APInt(uint32_t numbits, const std::string& Val, uint8_t radix)
- : BitWidth(numbits), VAL(0) {
- assert(BitWidth >= MIN_INT_BITS && "bitwidth too small");
- assert(BitWidth <= MAX_INT_BITS && "bitwidth too large");
- assert(!Val.empty() && "String empty?");
- fromString(numbits, Val.c_str(), (uint32_t)Val.size(), radix);
-}
-
APInt::APInt(const APInt& that)
: BitWidth(that.BitWidth), VAL(0) {
assert(BitWidth >= MIN_INT_BITS && "bitwidth too small");
@@ -2122,6 +2114,7 @@ void APInt::dump() const
/* Assumed by lowHalf, highHalf, partMSB and partLSB. A fairly safe
and unrestricting assumption. */
+#define COMPILE_TIME_ASSERT(cond) extern int CTAssert[(cond) ? 1 : -1]
COMPILE_TIME_ASSERT(integerPartWidth % 2 == 0);
/* Some handy functions local to this file. */
OpenPOWER on IntegriCloud