[llvm-commits] [PATCH] remove redundant 'static'
Zhongxing Xu
xuzhongxing at gmail.com
Mon Mar 8 04:45:34 PST 2010
'static' is redundant in this context:
Index: utils/TableGen/RegisterInfoEmitter.cpp
===================================================================
--- utils/TableGen/RegisterInfoEmitter.cpp (版本 97892)
+++ utils/TableGen/RegisterInfoEmitter.cpp (工作副本)
@@ -201,7 +201,7 @@
// Emit the register list now.
OS << " // " << Name << " Register Class...\n"
- << " static const unsigned " << Name
+ << " const unsigned " << Name
<< "[] = {\n ";
for (unsigned i = 0, e = RC.Elements.size(); i != e; ++i) {
Record *Reg = RC.Elements[i];
@@ -223,7 +223,7 @@
// Emit the register list now.
OS << " // " << Name
<< " Register Class Value Types...\n"
- << " static const EVT " << Name
+ << " const EVT " << Name
<< "[] = {\n ";
for (unsigned i = 0, e = RC.VTs.size(); i != e; ++i)
OS << getEnumName(RC.VTs[i]) << ", ";
@@ -252,7 +252,7 @@
OS << " // " << Name
<< " Sub-register Classes...\n"
- << " static const TargetRegisterClass* const "
+ << " const TargetRegisterClass* const "
<< Name << "SubRegClasses[] = {\n ";
bool Empty = true;
@@ -298,7 +298,7 @@
OS << " // " << Name
<< " Super-register Classes...\n"
- << " static const TargetRegisterClass* const "
+ << " const TargetRegisterClass* const "
<< Name << "SuperRegClasses[] = {\n ";
bool Empty = true;
@@ -334,7 +334,7 @@
OS << " // " << Name
<< " Register Class sub-classes...\n"
- << " static const TargetRegisterClass* const "
+ << " const TargetRegisterClass* const "
<< Name << "Subclasses[] = {\n ";
bool Empty = true;
@@ -382,7 +382,7 @@
OS << " // " << Name
<< " Register Class super-classes...\n"
- << " static const TargetRegisterClass* const "
+ << " const TargetRegisterClass* const "
<< Name << "Superclasses[] = {\n ";
bool Empty = true;
More information about the llvm-commits
mailing list