Displaying 1 result from an estimated 1 matches for "_z7startv".
2007 Mar 23
1
[LLVMdev] NEWBIE: deleting Instructions
...ck* blk =it;
User* u;
Value* val;
std::string s1;
for (BasicBlock::iterator i = blk->begin(), e = blk->end(); i != e ;
++i)
{
if(i->getOpcode()==33)
{
u = i;
val=u->getOperand(0);
s1 = val->getName();
if(s1 == "_Z7startv")
{
//HERE is the problem
blk->getInstList().erase(i);
change=true;
}
}
}
}
return change;
}
--
View this message in context: http://www.nabble.com/NEWBIE%3A-deleting-Instructions-tf3452416.html#a9630465
Sent from the LLVM - Dev mai...