#include#include void eraseBasicBlockFromFunction(Function* F, BasicBlock* BB) { BB->removeFromParent(); }
#includeThis code demonstrates how to erase a basic block `BB` from its parent function using the `eraseFromParent()` function. Both examples use the LLVM package library for C++.void eraseBasicBlock(BasicBlock* BB) { BB->eraseFromParent(); }