Skip to content

Commit

Permalink
Make sub- super- reg-class tables static.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29190 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Evan Cheng committed Jul 18, 2006
1 parent 21ba23d commit 6f6602c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions utils/TableGen/RegisterInfoEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6f6602c

Please sign in to comment.