[LLVMdev] Taking invoke instructions' labels

陳韋任 chenwj at iis.sinica.edu.tw
Thu Dec 29 02:09:00 PST 2011


> 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...

  Try "getNormalDest()" and "getUnwindDest()" functions?
  http://llvm.org/docs/doxygen/html/classllvm_1_1InvokeInst.html  

HTH,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj




More information about the llvm-dev mailing list