mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
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
This commit is contained in:
@@ -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.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user