Added JumpTable class, and simplified LongJCond23/22 by using Assignment

class as an parameter.
This commit is contained in:
Artur K
2012-03-17 23:42:46 +01:00
parent 7b63b45dd5
commit 71fc8bfef7
3 changed files with 45 additions and 10 deletions

View File

@@ -77,6 +77,15 @@ struct Assignment
COND_EXPR *lhs;
COND_EXPR *rhs;
};
struct JumpTable
{
uint32_t start;
uint32_t finish;
bool valid() {return start<finish;}
size_t size() { return (finish-start)/2;}
size_t entrySize() { return 2;}
void pruneEntries(uint16_t cs);
};
struct Function : public llvm::ilist_node<Function>
{