diff options
author | Chris Lattner <sabre@nondot.org> | 2008-08-17 04:58:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-08-17 04:58:58 +0000 |
commit | 12e443172665dfec499ca344393ba32750934aec (patch) | |
tree | ce7cb0fd13223e44a3af45e207fa6c5b4dadfe93 /lib/Support | |
parent | a7bce516fda6f9d5ca13da3358c963cbaff456e2 (diff) | |
download | external_llvm-12e443172665dfec499ca344393ba32750934aec.zip external_llvm-12e443172665dfec499ca344393ba32750934aec.tar.gz external_llvm-12e443172665dfec499ca344393ba32750934aec.tar.bz2 |
remove a dead APInt ctor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54869 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/APFloat.cpp | 1 | ||||
-rw-r--r-- | lib/Support/APInt.cpp | 9 |
2 files changed, 2 insertions, 8 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index 0ee3d54..a6b7ed3 100644 --- a/lib/Support/APFloat.cpp +++ b/lib/Support/APFloat.cpp @@ -24,6 +24,7 @@ using namespace llvm; /* Assumed in hexadecimal significand parsing, and conversion to hexadecimal strings. */ +#define COMPILE_TIME_ASSERT(cond) extern int CTAssert[(cond) ? 1 : -1] COMPILE_TIME_ASSERT(integerPartWidth % 4 == 0); namespace llvm { diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp index 167d569..d579ae0 100644 --- a/lib/Support/APInt.cpp +++ b/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. */ |