for (i = 0; i < bb_in->stmts_used; i++) {
st = bb_in->stmts[i];
- if (!st) continue;
+ tl_assert(st);
/* Examine each stmt in turn to figure out if it needs to be
preceded by a memory access check. If so, collect up the
}
break;
+ case Ist_NoOp:
case Ist_IMark:
case Ist_MFence:
break;
return bbInfo;
}
-// XXX: remove eventually
-#define Ist_Nop 99
-
static
void handleOneStatement(IRTypeEnv* tyenv, IRBB* bbOut, IRStmt* st,
Addr* instrAddr, UInt* instrLen,
UInt* dataSize)
{
switch (st->tag) {
- case Ist_Nop:
+ case Ist_NoOp:
break;
case Ist_IMark:
UInt instrLen;
IRExpr *loadAddrExpr, *storeAddrExpr;
- // Add Nops
- // XXX: remove eventually
- IRStmt xxx = { Ist_Nop };
- IRStmt* myNOP = &xxx;
- for (i = 0; i < bbIn->stmts_used; i++) {
- st = bbIn->stmts[i];
- if (!st) bbIn->stmts[i] = myNOP;
- }
-
/* Set up BB */
bbOut = emptyIRBB();
bbOut->tyenv = dopyIRTypeEnv(bbIn->tyenv);
|| isBogusAtom(st->Ist.STle.data);
case Ist_Exit:
return isBogusAtom(st->Ist.Exit.guard);
+ case Ist_NoOp:
case Ist_IMark:
case Ist_MFence:
return False;
for (i = 0; i < bb_in->stmts_used; i++) {
st = bb_in->stmts[i];
- if (!st) continue;
+ tl_assert(st);
tl_assert(isFlatIRStmt(st));
complainIfUndefined( &mce, st->Ist.Exit.guard );
break;
+ case Ist_NoOp:
case Ist_IMark:
case Ist_MFence:
break;