diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-31 00:29:54 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-31 00:29:54 +0000 |
commit | 73dee180c836270644dfa7d90f9c5ba877567999 (patch) | |
tree | 42121904659344cc390d84ff01b9e06df2ff90ba /include | |
parent | 3f8195ea4fda87a8b50f93197a79a0655aba2b92 (diff) | |
download | external_llvm-73dee180c836270644dfa7d90f9c5ba877567999.zip external_llvm-73dee180c836270644dfa7d90f9c5ba877567999.tar.gz external_llvm-73dee180c836270644dfa7d90f9c5ba877567999.tar.bz2 |
Make sure that the Attribute object represents one attribute only.
Several places were still treating the Attribute object as respresenting
multiple attributes. Those places now use the AttributeSet to represent
multiple attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174003 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IR/Attributes.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index 1b8195f..29eaec1 100644 --- a/include/llvm/IR/Attributes.h +++ b/include/llvm/IR/Attributes.h @@ -41,13 +41,13 @@ class Type; class Attribute { public: /// This enumeration lists the attributes that can be associated with - /// parameters, function results or the function itself. + /// parameters, function results, or the function itself. /// - /// Note: uwtable is about the ABI or the user mandating an entry in the - /// unwind table. The nounwind attribute is about an exception passing by the - /// function. + /// Note: The `uwtable' attribute is about the ABI or the user mandating an + /// entry in the unwind table. The `nounwind' attribute is about an exception + /// passing by the function. /// - /// In a theoretical system that uses tables for profiling and sjlj for + /// In a theoretical system that uses tables for profiling and SjLj for /// exceptions, they would be fully independent. In a normal system that uses /// tables for both, the semantics are: /// @@ -181,12 +181,11 @@ private: friend class AttrBuilder; friend class AttributeSetImpl; - /// \brief The attributes that we are managing. This can be null to represent + /// \brief The attributes that we are managing. This can be null to represent /// the empty attributes list. AttributeSetImpl *pImpl; - /// \brief The attributes for the specified index are returned. Attributes - /// for the result are denoted with Idx = 0. + /// \brief The attributes for the specified index are returned. AttributeSetNode *getAttributes(unsigned Idx) const; /// \brief Create an AttributeSet with the specified parameters in it. |