Search code examples
llvmllvm-c++-api

Change name/label of a Basic Block (in llvm pass)



Is there a way to change the name/label of a particular basic block in llvm?


Solution

  • A BasicBlock is a Value, and thus it has a setName method.