aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/CodeGenTarget.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-03-01 17:30:35 +0000
committerJim Grosbach <grosbach@apple.com>2012-03-01 17:30:35 +0000
commit194f3fa9eadc7dfe9f1750c16e1c2a8ebe11c88c (patch)
tree7cae3c194a7719ef4767351b64027420a0ac03a6 /utils/TableGen/CodeGenTarget.cpp
parent1e33b461b4f6700721e14376c372edd132d29b11 (diff)
Revert "Emit the SubRegTable with the smallest possible integer type."
This reverts commit 151760. We want to move getSubReg() from TargetRegisterInfo into MCRegisterInfo, but to do that, the type of the lookup table needs to be the same for all targets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151814 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.cpp')
-rw-r--r--utils/TableGen/CodeGenTarget.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp
index 1eb1a54e56..cf6793570a 100644
--- a/utils/TableGen/CodeGenTarget.cpp
+++ b/utils/TableGen/CodeGenTarget.cpp
@@ -108,14 +108,6 @@ std::string llvm::getQualifiedName(const Record *R) {
return Namespace + "::" + R->getName();
}
-const char *llvm::getMinimalTypeForRange(uint64_t Range) {
- assert(Range < 0xFFFFFFFFULL && "Enum too large");
- if (Range > 0xFFFF)
- return "uint32_t";
- if (Range > 0xFF)
- return "uint16_t";
- return "uint8_t";
-}
/// getTarget - Return the current instance of the Target class.
///