OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
183275a
)
emit an ID # for each regclass ID. Chris doesn't like to have to count.
author
Chris Lattner
<sabre@nondot.org>
Tue, 11 Mar 2008 00:00:23 +0000
(
00:00
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 11 Mar 2008 00:00:23 +0000
(
00:00
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48200
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/RegisterInfoEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/RegisterInfoEmitter.cpp
b/utils/TableGen/RegisterInfoEmitter.cpp
index
c9f8d0a
..
9577580
100644
(file)
--- a/
utils/TableGen/RegisterInfoEmitter.cpp
+++ b/
utils/TableGen/RegisterInfoEmitter.cpp
@@
-77,7
+77,7
@@
void RegisterInfoEmitter::runHeader(std::ostream &OS) {
for (unsigned i = 0, e = RegisterClasses.size(); i != e; ++i) {
if (i) OS << ",\n";
OS << " " << RegisterClasses[i].getName() << "RegClassID";
-
if (!i) OS << " = 1"
;
+
OS << " = " << (i+1)
;
}
OS << "\n };\n\n";