diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-07-18 22:18:31 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-07-18 22:18:31 +0000 |
commit | 6f6602ce4268c60b5d602b7a3565cca4c6330811 (patch) | |
tree | 480c06f254603a9f2c63f196b0cc917b464a1bda /utils/TableGen | |
parent | 21ba23d0d88cff57dcdf104cd6914dabcbc68131 (diff) | |
download | external_llvm-6f6602ce4268c60b5d602b7a3565cca4c6330811.zip external_llvm-6f6602ce4268c60b5d602b7a3565cca4c6330811.tar.gz external_llvm-6f6602ce4268c60b5d602b7a3565cca4c6330811.tar.bz2 |
Make sub- super- reg-class tables static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29190 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/RegisterInfoEmitter.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp index 1799ac4..8ed9eef 100644 --- a/utils/TableGen/RegisterInfoEmitter.cpp +++ b/utils/TableGen/RegisterInfoEmitter.cpp @@ -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; |