mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[TableGen] Remove code for renaming anonymous register classes as it can never execute.
It tried to detect 9 letters (the length of anonymous) followed by a period. But anonymous classes start with "anonymous_" rather than "anonymous." these days. llvm-svn: 304387
This commit is contained in:
parent
c1dcc79554
commit
a50fc1fdcf
@ -679,11 +679,6 @@ CodeGenRegisterClass::CodeGenRegisterClass(CodeGenRegBank &RegBank, Record *R)
|
||||
Name(R->getName()),
|
||||
TopoSigs(RegBank.getNumTopoSigs()),
|
||||
EnumValue(-1) {
|
||||
// Rename anonymous register classes.
|
||||
if (R->getName().size() > 9 && R->getName()[9] == '.') {
|
||||
static unsigned AnonCounter = 0;
|
||||
R->setName("AnonRegClass_" + utostr(AnonCounter++));
|
||||
}
|
||||
|
||||
std::vector<Record*> TypeList = R->getValueAsListOfDefs("RegTypes");
|
||||
for (unsigned i = 0, e = TypeList.size(); i != e; ++i) {
|
||||
@ -867,7 +862,7 @@ std::string CodeGenRegisterClass::getQualifiedName() const {
|
||||
if (Namespace.empty())
|
||||
return getName();
|
||||
else
|
||||
return Namespace + "::" + getName();
|
||||
return (Namespace + "::" + getName()).str();
|
||||
}
|
||||
|
||||
// Compute sub-classes of all register classes.
|
||||
|
Loading…
x
Reference in New Issue
Block a user