[LLVMdev] Is there a way to address an instruction?
baldrick at free.fr
Tue Jul 27 00:02:00 PDT 2010
> In the objdump for binary, there is always an address associated with an
> In the bitcode file, is there a way to address an instruction? It does
> not have to be a single ID like objdump.
no, there is no way in general. You can always start a new basic block
just before your instruction and take the address of that basic block.
However later optimizations may move your instruction out of the basic
block. What do you want this for?
More information about the llvm-dev