mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 07:09:08 +00:00
Make sub- super- reg-class tables static.
llvm-svn: 29190
This commit is contained in:
parent
e1054a6cfe
commit
708ca90182
@ -127,7 +127,8 @@ void RegisterInfoEmitter::run(std::ostream &OS) {
|
||||
std::string Name = RC.TheDef->getName();
|
||||
|
||||
// Emit the register list now.
|
||||
OS << " // " << Name << " Register Class...\n const unsigned " << Name
|
||||
OS << " // " << Name << " Register Class...\n"
|
||||
<< " static const unsigned " << Name
|
||||
<< "[] = {\n ";
|
||||
for (unsigned i = 0, e = RC.Elements.size(); i != e; ++i) {
|
||||
Record *Reg = RC.Elements[i];
|
||||
@ -180,7 +181,8 @@ void RegisterInfoEmitter::run(std::ostream &OS) {
|
||||
}
|
||||
|
||||
OS << " // " << Name
|
||||
<< " Register Class sub-classes...\n const TargetRegisterClass* "
|
||||
<< " Register Class sub-classes...\n"
|
||||
<< " static const TargetRegisterClass* "
|
||||
<< Name << "Subclasses [] = {\n ";
|
||||
|
||||
bool Empty = true;
|
||||
@ -214,7 +216,8 @@ void RegisterInfoEmitter::run(std::ostream &OS) {
|
||||
std::string Name = RC.TheDef->getName();
|
||||
|
||||
OS << " // " << Name
|
||||
<< " Register Class super-classes...\n const TargetRegisterClass* "
|
||||
<< " Register Class super-classes...\n"
|
||||
<< " static const TargetRegisterClass* "
|
||||
<< Name << "Superclasses [] = {\n ";
|
||||
|
||||
bool Empty = true;
|
||||
|
Loading…
Reference in New Issue
Block a user