[llvm-commits] CVS: llvm/utils/TableGen/Record.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Dec 5 22:43:01 PST 2002
Changes in directory llvm/utils/TableGen:
Record.cpp updated: 1.7 -> 1.8
---
Log message:
Allow printing partially constructed bitsets
---
Diffs of the changes:
Index: llvm/utils/TableGen/Record.cpp
diff -u llvm/utils/TableGen/Record.cpp:1.7 llvm/utils/TableGen/Record.cpp:1.8
--- llvm/utils/TableGen/Record.cpp:1.7 Thu Dec 5 22:02:48 2002
+++ llvm/utils/TableGen/Record.cpp Thu Dec 5 22:42:10 2002
@@ -153,7 +153,10 @@
OS << "{ ";
for (unsigned i = 0, e = getNumBits(); i != e; ++i) {
if (i) OS << ", ";
- getBit(e-i-1)->print(OS);
+ if (Init *Bit = getBit(e-i-1))
+ Bit->print(OS);
+ else
+ OS << "*";
}
OS << " }";
}
More information about the llvm-commits
mailing list