[LLVMdev] Taking invoke instructions' labels

Deu Arm deuarm at gmail.com
Thu Dec 29 01:51:04 PST 2011


Hello everybody,
I am writing a pass, that does something on strings. It's a long story, so
I will write shortly.
If I have an iterator on invoke instruction, how can I take its label
parameters?
For example,
invoke void @_ZNSsC1EPKcRKSaIcE(%"class.std::basic_string"* %str, i8*
getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0),
%"class.std::allocator"* %2)
          to label %7 unwind label %20

Here I am trying to get the *label %7* and *label %20*. Is that possible?
We have tried just to increment our iterator, but it didn't help...

Sincerely, Schuhmacher.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111229/a1e1e843/attachment.html>


More information about the llvm-dev mailing list