From: John S. <leg...@gm...> - 2009-02-21 07:24:12
|
Hi Gabriel: I think I've discovered the problem - let me know if I'm correct. Originally, my vinst method was being called from "visitCilInstr myVisitor some_instr". What I hadn't realized was that in order to change the C code, the vinst method had to be invoked from a "higher-level" method. This is needed because only the higher-level method (i.e., the vstmt method, or the vfunc method) can know where to stick the added statements. Basically what was happening before was that I returned the new set of instructions, but there wasn't anyone to receive and act on them. After correcting this error, my C code is now being changed. Cheers, legit |