summaryrefslogtreecommitdiff
path: root/include/llvm/IR/Attributes.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-18 21:53:16 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-18 21:53:16 +0000
commit1b0c54f1c5dd61e56cb7cbc435fcb3319cff628f (patch)
treefc692786464bca45139569b988cd5ada7399dfc9 /include/llvm/IR/Attributes.h
parent1a17bd21ff64968817dedb6cd2b7c809cee90804 (diff)
downloadllvm-1b0c54f1c5dd61e56cb7cbc435fcb3319cff628f.tar.gz
llvm-1b0c54f1c5dd61e56cb7cbc435fcb3319cff628f.tar.bz2
llvm-1b0c54f1c5dd61e56cb7cbc435fcb3319cff628f.tar.xz
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/llvm/IR/Attributes.h')
-rw-r--r--include/llvm/IR/Attributes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h
index 067e001ac8..96fcbf9b9d 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;