llvmpy / llvmpy

Originally a github fork of the llvm-py repository from http://www.mdevan.org/llvm-py/index.html updated to work with LLVM 3.x. Since then it has changed significantly with multiple sub-projects.

Home Page:www.llvmpy.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modifying Instruction List

mayanez opened this issue · comments

Hi,
Looking through the C++ API it seems that you must modify the underlying list. I've been reading through the code and so far what I gather is that getInstList() is read-only. Basically what I would like to do is something like ReplaceInstWithInst() from the C++ API.

How do I go about modifying it with llvmpy?

Thanks

Added in this commit: b6c1e7a