[LLVMdev] Problem getting LoopInfo inside non-LoopPass

Ryan Taylor ryta1203 at gmail.com
Wed Nov 16 17:23:50 PST 2011


LLVMers,

  So, I'm trying to write a pass that changes the names of the basic blocks
through the use of Value, so:

  Value *V = *BasicBlockPtr;
  const Twine Tname("new_name");
  V->setName(Tname);

But when I run the opt and look at the IR output nothing is changed? Not
sure what I'm doing wrong.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111116/ef17f943/attachment.html>


More information about the llvm-dev mailing list