[LLVMdev] context/scope of instruction
Christian Jacobs
Christian.Jacobs at mailbox.tu-dresden.de
Thu Jan 19 10:12:26 PST 2012
Hello,
I need to know how I get the LLVM::IDScope object of an instruction.
My program contains:
call void (...)* @commit(), !dbg !16
!16 = metadata !{i32 16, i32 5, metadata !8, null}
!8 = metadata !{i32 589835, metadata !4, i32 10, i32 1, metadata !2, i32 0} ; [ DW_TAG_lexical_block ]
LLVM::Instruction.hasMetadata() is 0
I got LLVM::Scope for variables over DIGlobalVariable.getContext() and DIVariable.getContext() but how do I get it for instructions?
Regards
Christian Jacobs
More information about the llvm-dev
mailing list