[LLVMdev] Source Code Location of an Instruction
rengolin at systemcall.org
Wed Feb 17 13:36:13 PST 2010
On 17 February 2010 17:32, Devang Patel <devang.patel at gmail.com> wrote:
> LLVM instruction or machine instruction ? If LLVM instruction then it
> is possible. Add -g on the command line along with -O0. Using your
> example, you'll get following with clang.
Yeah, I did that, but the output really doesn't help much. What I
wanted was exactly what I had in my email, source code lines
intermixed with their respective LLVM IR instructions. No machine
instructions, asm or binary.
In simple cases I can normally know where each line starts/ends, but
if I'm mixing too many similar commands, it can get fuzzy, especially
after a few hours looking at the same code with subtle changes... ;)
Reclaim your digital rights, eliminate DRM, learn more at
More information about the llvm-dev