[NFC] Cleanup: Function::getBasicBlockList() and Function::getSublistAccess() are...
authorVasileios Porpodas <vporpodas@google.com>
Wed, 14 Dec 2022 00:02:50 +0000 (16:02 -0800)
committerVasileios Porpodas <vporpodas@google.com>
Fri, 16 Dec 2022 05:41:24 +0000 (21:41 -0800)
commitad36f767a4d183318b2e3a33dfc1b86a50ac2ab1
tree1b50bf79d4ce2267980d9343e6338494827a29b4
parent02988fce76d8a95e2bc33e80b581c3b0b2c92755
[NFC] Cleanup: Function::getBasicBlockList() and Function::getSublistAccess() are now private

The Function class now supports an adequate set of member functions to help
modify the BB list, including Function::splice(), Function::erase(),
Function::insert() etc. so we no longer need access to the underlying list.

Differential Revision: https://reviews.llvm.org/D140162
llvm/include/llvm/IR/Function.h