[IR][NFC] Adds BasicBlock::erase().
authorVasileios Porpodas <vporpodas@google.com>
Mon, 28 Nov 2022 22:49:34 +0000 (14:49 -0800)
committerVasileios Porpodas <vporpodas@google.com>
Fri, 2 Dec 2022 01:47:55 +0000 (17:47 -0800)
commit3259caefb3b16213b41f8d7b9e85a0b04f0c1f13
tree7b2be672b72f049c793020cd68579f2c131e4c78
parenta1816a32b55b372b130dac911300a3eda11679e4
[IR][NFC] Adds BasicBlock::erase().

Currently the only way to do this is to work with the instruction list directly.
This is part of a series of cleanup patches towards making BasicBlock::getInstList() private.

Differential Revision: https://reviews.llvm.org/D139142
llvm/include/llvm/IR/BasicBlock.h
llvm/lib/IR/BasicBlock.cpp
llvm/unittests/IR/BasicBlockTest.cpp