[LLVMdev] getting identifier for alloca instruction and basic blocks
Marcelo Sousa
dipython at gmail.com
Sat Jun 23 15:00:12 PDT 2012
Hello,
How can I retrieve the identifier in a alloca instruction?
In the AllocaInst class there is no method to get this info so I
assumed that the actual value name for the instruction is the
identifier but when I have something like:
%1 = alloca %"mystruct", align 8
When calling the function Value::getName() I get the empty string.
What should I do to retrieve the "%1"?
Also, in the basic blocks how can I retrieve the label identifier?
Thanks,
Marcelo
More information about the llvm-dev
mailing list