diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-18 21:53:16 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-18 21:53:16 +0000 |
commit | 1b0c54f1c5dd61e56cb7cbc435fcb3319cff628f (patch) | |
tree | fc692786464bca45139569b988cd5ada7399dfc9 /include | |
parent | 1a17bd21ff64968817dedb6cd2b7c809cee90804 (diff) | |
download | external_llvm-1b0c54f1c5dd61e56cb7cbc435fcb3319cff628f.zip external_llvm-1b0c54f1c5dd61e56cb7cbc435fcb3319cff628f.tar.gz external_llvm-1b0c54f1c5dd61e56cb7cbc435fcb3319cff628f.tar.bz2 |
Use AttributeSet accessor methods instead of Attribute accessor methods.
Further encapsulation of the Attribute object. Don't allow direct access to the
Attribute object as an aggregate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IR/Attributes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index 067e001..96fcbf9 100644 --- a/include/llvm/IR/Attributes.h +++ b/include/llvm/IR/Attributes.h @@ -261,6 +261,10 @@ public: /// list. AttributeSet addAttr(LLVMContext &C, unsigned Idx, Attribute Attrs) const; + /// \brief Add return attributes to this attribute set. Since attribute sets + /// are immutable, this returns a new set. + AttributeSet addRetAttributes(LLVMContext &C, AttributeSet Attrs) const; + /// \brief Add function attributes to this attribute set. Since attribute sets /// are immutable, this returns a new set. AttributeSet addFnAttributes(LLVMContext &C, AttributeSet Attrs) const; |