diff options
-rw-r--r-- | llvm/utils/TableGen/Types.cpp | 8 | ||||
-rw-r--r-- | llvm/utils/TableGen/Types.h | 3 |
2 files changed, 0 insertions, 11 deletions
diff --git a/llvm/utils/TableGen/Types.cpp b/llvm/utils/TableGen/Types.cpp index a6682da90e6b..aca8e36b683d 100644 --- a/llvm/utils/TableGen/Types.cpp +++ b/llvm/utils/TableGen/Types.cpp @@ -34,11 +34,3 @@ const char *llvm::getMinimalTypeForRange(uint64_t Range, unsigned MaxSize LLVM_A return "uint16_t"; return "uint8_t"; } - -const char *llvm::getMinimalTypeForEnumBitfield(uint64_t Size) { - uint64_t MaxIndex = Size; - if (MaxIndex > 0) - MaxIndex--; - assert(MaxIndex <= 64 && "Too many bits"); - return getMinimalTypeForRange(1ULL << MaxIndex); -} diff --git a/llvm/utils/TableGen/Types.h b/llvm/utils/TableGen/Types.h index 17c7742ccaac..f369d61785c4 100644 --- a/llvm/utils/TableGen/Types.h +++ b/llvm/utils/TableGen/Types.h @@ -16,9 +16,6 @@ namespace llvm { /// MaxSize indicates the largest size of integer to consider (in bits) and only /// supports values of at least 32. const char *getMinimalTypeForRange(uint64_t Range, unsigned MaxSize = 64); - -/// Returns the smallest unsigned integer type that can hold the given bitfield. -const char *getMinimalTypeForEnumBitfield(uint64_t Size); } #endif |