summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/APInt.h
diff options
context:
space:
mode:
authorZhou Sheng <zhousheng00@gmail.com>2007-04-01 12:45:33 +0000
committerZhou Sheng <zhousheng00@gmail.com>2007-04-01 12:45:33 +0000
commit770e1798e110732e09540d53ffd2be261790f2c1 (patch)
treee594c1e88b68c326dfd49c23a1e2bc988095583e /include/llvm/ADT/APInt.h
parent497d93e61f43fe69030d711e7483adbbb53243fb (diff)
downloadllvm-770e1798e110732e09540d53ffd2be261790f2c1.tar.gz
llvm-770e1798e110732e09540d53ffd2be261790f2c1.tar.bz2
llvm-770e1798e110732e09540d53ffd2be261790f2c1.tar.xz
Remove unused methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35553 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/APInt.h')
-rw-r--r--include/llvm/ADT/APInt.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h
index 6ccefc2352..c1557ec753 100644
--- a/include/llvm/ADT/APInt.h
+++ b/include/llvm/ADT/APInt.h
@@ -396,15 +396,6 @@ public:
return &pVal[0];
}
- /// @brief Set a sepcific word in the value to a new value.
- inline void setWordToValue(uint32_t idx, uint64_t Val) {
- assert(idx < getNumWords() && "Invalid word array index");
- if (isSingleWord())
- VAL = Val;
- else
- pVal[idx] = Val;
- }
-
/// @}
/// @name Unary Operators
/// @{
@@ -743,15 +734,6 @@ public:
/// @brief Zero extend or truncate to width
APInt &zextOrTrunc(uint32_t width);
- /// This is a help function for convenience. If the given \p width equals to
- /// this APInt's BitWidth, just return this APInt, otherwise, just zero
- /// extend it.
- inline APInt &zextOrCopy(uint32_t width) {
- if (width == BitWidth)
- return *this;
- return zext(width);
- }
-
/// @}
/// @name Bit Manipulation Operators
/// @{