[llvm-commits] CVS: llvm/utils/TableGen/SubtargetEmitter.cpp
Christopher Lamb
christopher.lamb at gmail.com
Sun Apr 22 02:05:56 PDT 2007
Changes in directory llvm/utils/TableGen:
SubtargetEmitter.cpp updated: 1.24 -> 1.25
---
Log message:
Fix generation of certain scheduler itineraries.
---
Diffs of the changes: (+2 -1)
SubtargetEmitter.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/utils/TableGen/SubtargetEmitter.cpp
diff -u llvm/utils/TableGen/SubtargetEmitter.cpp:1.24 llvm/utils/TableGen/SubtargetEmitter.cpp:1.25
--- llvm/utils/TableGen/SubtargetEmitter.cpp:1.24 Tue Dec 12 14:55:58 2006
+++ llvm/utils/TableGen/SubtargetEmitter.cpp Sun Apr 22 04:04:24 2007
@@ -218,7 +218,7 @@
// For each stage
unsigned N = NStages = StageList.size();
- for (unsigned i = 0; i < N; i++) {
+ for (unsigned i = 0; i < N;) {
// Next stage
Record *Stage = StageList[i];
@@ -241,6 +241,7 @@
// Close off stage
ItinString += " }";
+ if (++i < N) ItinString += ", ";
}
}
More information about the llvm-commits
mailing list