From 194f3fa9eadc7dfe9f1750c16e1c2a8ebe11c88c Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Thu, 1 Mar 2012 17:30:35 +0000 Subject: 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 --- utils/TableGen/CodeGenTarget.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'utils/TableGen/CodeGenTarget.cpp') 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. /// -- cgit v1.2.3-70-g09d2