projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64a8ddd
)
Remove an unused variable.
author
Reid Spencer
<rspencer@reidspencer.com>
Fri, 3 Nov 2006 01:48:30 +0000
(
01:48
+0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Fri, 3 Nov 2006 01:48:30 +0000
(
01:48
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31403
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/CodeEmitterGen.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/CodeEmitterGen.cpp
b/utils/TableGen/CodeEmitterGen.cpp
index 3dcaea43007b279fd7b817b2a5ff3616ab1034f2..bc415fcc1db770fb79f556453e94e9a0ab82de41 100644
(file)
--- a/
utils/TableGen/CodeEmitterGen.cpp
+++ b/
utils/TableGen/CodeEmitterGen.cpp
@@
-100,10
+100,8
@@
void CodeEmitterGen::run(std::ostream &o) {
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);