diff options
| author | Jim Grosbach <grosbach@apple.com> | 2012-03-01 17:30:35 +0000 |
|---|---|---|
| committer | Jim Grosbach <grosbach@apple.com> | 2012-03-01 17:30:35 +0000 |
| commit | 53733cdb23e73bdb6a45fdbf93aa8e40d603217d (patch) | |
| tree | 2b7870ba5568b64098d736b2aee21bfb90d4202d /llvm/utils/TableGen/CodeGenTarget.cpp | |
| parent | 394ad59d90790bf6a2aa4f6322c77adc510fb39c (diff) | |
| download | bcm5719-llvm-53733cdb23e73bdb6a45fdbf93aa8e40d603217d.tar.gz bcm5719-llvm-53733cdb23e73bdb6a45fdbf93aa8e40d603217d.zip | |
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.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp index 1eb1a54e565..cf6793570a2 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. /// |

