[llvm-commits] CVS: llvm-java/lib/Compiler/Compiler.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sun May 23 05:35:01 PDT 2004
Changes in directory llvm-java/lib/Compiler:
Compiler.cpp updated: 1.9 -> 1.10
---
Log message:
Remove one variable from tableswitch skipping code.
Fix lookupswitch skipping code.
---
Diffs of the changes: (+2 -2)
Index: llvm-java/lib/Compiler/Compiler.cpp
diff -u llvm-java/lib/Compiler/Compiler.cpp:1.9 llvm-java/lib/Compiler/Compiler.cpp:1.10
--- llvm-java/lib/Compiler/Compiler.cpp:1.9 Sun May 23 05:17:31 2004
+++ llvm-java/lib/Compiler/Compiler.cpp Sun May 23 05:33:37 2004
@@ -125,8 +125,7 @@
readSInt(code, i);
int low = readSInt(code, i);
int high = readSInt(code, i);
- unsigned offsetCount = high - low + 1;
- while (offsetCount--) {
+ while (low++ <= high) {
unsigned bcIndex = bcStart + readSInt(code, i);
bc2bbMap_[bcIndex] = new BasicBlock(
std::string("bb at bc") + utostr(bcIndex), &function);
@@ -135,6 +134,7 @@
}
case LOOKUPSWITCH: {
skipPadBytes(code, i);
+ readSInt(code, i);
unsigned pairCount = readUInt(code, i);
while (pairCount--) {
readSInt(code, i);
More information about the llvm-commits
mailing list