aboutsummaryrefslogtreecommitdiff
path: root/llvm/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
commit53733cdb23e73bdb6a45fdbf93aa8e40d603217d (patch)
tree2b7870ba5568b64098d736b2aee21bfb90d4202d /llvm/utils/TableGen/CodeGenTarget.cpp
parent394ad59d90790bf6a2aa4f6322c77adc510fb39c (diff)
downloadllvm-53733cdb23e73bdb6a45fdbf93aa8e40d603217d.zip
llvm-53733cdb23e73bdb6a45fdbf93aa8e40d603217d.tar.gz
llvm-53733cdb23e73bdb6a45fdbf93aa8e40d603217d.tar.bz2
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. llvm-svn: 151814
Diffstat (limited to 'llvm/utils/TableGen/CodeGenTarget.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenTarget.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp
index 1eb1a54..cf67935 100644
--- a/llvm/utils/TableGen/CodeGenTarget.cpp
+++ b/llvm/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.
///