[PATCH] D144040: [NFC][IR] Force accesses to Function attributes go through getters/setters
Vasileios Porpodas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 14 13:19:50 PST 2023
vporpo created this revision.
vporpo added a reviewer: aeubanks.
Herald added a subscriber: hiraditya.
Herald added a project: All.
vporpo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch moves Function::AttributeList to a separate FnAttributeList class
where it is declared as private. The Function class inherits from
FnAttributeList but all accesses to the attributes have to go through
getter/setter functions.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D144040
Files:
llvm/include/llvm/IR/Function.h
llvm/lib/IR/Function.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144040.497421.patch
Type: text/x-patch
Size: 13323 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230214/0f50d6f2/attachment.bin>
More information about the llvm-commits
mailing list