[PATCH] D141731: [NFC] Makes mutable Function::getBasicBlockList() private
Vasileios Porpodas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 13 14:41:48 PST 2023
vporpo updated this revision to Diff 497118.
vporpo added a comment.
Rebase
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141731/new/
https://reviews.llvm.org/D141731
Files:
llvm/include/llvm/IR/Function.h
Index: llvm/include/llvm/IR/Function.h
===================================================================
--- llvm/include/llvm/IR/Function.h
+++ llvm/include/llvm/IR/Function.h
@@ -725,8 +725,11 @@
/// of functions to modify the list, including Function::splice(),
/// Function::erase(), Function::insert() etc.
const BasicBlockListType &getBasicBlockList() const { return BasicBlocks; }
- BasicBlockListType &getBasicBlockList() { return BasicBlocks; }
+private:
+ BasicBlockListType &getBasicBlockList() { return BasicBlocks; }
+
+public:
static BasicBlockListType Function::*getSublistAccess(BasicBlock*) {
return &Function::BasicBlocks;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141731.497118.patch
Type: text/x-patch
Size: 681 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230213/c4c49da1/attachment.bin>
More information about the llvm-commits
mailing list