[llvm-commits] CVS: llvm/utils/TableGen/CodeEmitterGen.cpp
Reid Spencer
reid at x10sys.com
Thu Nov 2 17:48:44 PST 2006
Changes in directory llvm/utils/TableGen:
CodeEmitterGen.cpp updated: 1.49 -> 1.50
---
Log message:
Remove an unused variable.
---
Diffs of the changes: (+1 -3)
CodeEmitterGen.cpp | 4 +---
1 files changed, 1 insertion(+), 3 deletions(-)
Index: llvm/utils/TableGen/CodeEmitterGen.cpp
diff -u llvm/utils/TableGen/CodeEmitterGen.cpp:1.49 llvm/utils/TableGen/CodeEmitterGen.cpp:1.50
--- llvm/utils/TableGen/CodeEmitterGen.cpp:1.49 Mon Sep 4 22:01:52 2006
+++ llvm/utils/TableGen/CodeEmitterGen.cpp Thu Nov 2 19:48:30 2006
@@ -100,10 +100,8 @@
BitsInit *BI = R->getValueAsBitsInit("Inst");
- unsigned Value = 0;
- const std::vector<RecordVal> &Vals = R->getValues();
-
// Start by filling in fixed values...
+ unsigned Value = 0;
for (unsigned i = 0, e = BI->getNumBits(); i != e; ++i) {
if (BitInit *B = dynamic_cast<BitInit*>(BI->getBit(e-i-1))) {
Value |= B->getValue() << (e-i-1);
More information about the llvm-commits
mailing list