[llvm-commits] CVS: llvm/utils/TableGen/RegisterInfoEmitter.cpp
Evan Cheng
evan.cheng at apple.com
Tue Jul 18 22:58:31 PDT 2006
Changes in directory llvm/utils/TableGen:
RegisterInfoEmitter.cpp updated: 1.46 -> 1.47
---
Log message:
Make sub- and super- register classes const.
---
Diffs of the changes: (+5 -4)
RegisterInfoEmitter.cpp | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
Index: llvm/utils/TableGen/RegisterInfoEmitter.cpp
diff -u llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.46 llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.47
--- llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.46 Tue Jul 18 17:18:31 2006
+++ llvm/utils/TableGen/RegisterInfoEmitter.cpp Wed Jul 19 00:58:18 2006
@@ -149,8 +149,9 @@
// Emit the register list now.
OS << " // " << Name
- << " Register Class Value Types...\n const MVT::ValueType " << Name
- << "[] = {\n ";
+ << " Register Class Value Types...\n"
+ << " static const MVT::ValueType " << Name
+ << "[] = {\n ";
for (unsigned i = 0, e = RC.VTs.size(); i != e; ++i)
OS << RC.VTs[i] << ", ";
OS << "MVT::Other\n };\n\n";
@@ -182,7 +183,7 @@
OS << " // " << Name
<< " Register Class sub-classes...\n"
- << " static const TargetRegisterClass* "
+ << " static const TargetRegisterClass* const "
<< Name << "Subclasses [] = {\n ";
bool Empty = true;
@@ -217,7 +218,7 @@
OS << " // " << Name
<< " Register Class super-classes...\n"
- << " static const TargetRegisterClass* "
+ << " static const TargetRegisterClass* const "
<< Name << "Superclasses [] = {\n ";
bool Empty = true;
More information about the llvm-commits
mailing list