在下面的代碼中,我嘗試替換LLVM指令的操作數。然而它不起作用,沒有任何改變。任何想法如何解決這個問題?替換LLVM指令的操作數
for (OI = insn->op_begin(), OE = insn->op_end(); OI != OE; ++OI)
{
Value *val = *OI;
iter = mapClonedAndOrg.find(val);
if(iter != mapClonedAndOrg.end())
{
// Here I try to replace the operand, to no effect!
val = (Value*)iter->second.PN;
}
}
C ** exclusive或** C++? – 2012-11-22 05:54:01