summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-01 22:32:30 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-01 22:32:30 +0000
commit7a33f779b97c8eab1f69766053bf63d3cc1ea813 (patch)
tree2fc4c287365a8c19634e39dd75fe5604418e1dff /llvm/include
parentf5fc08445f9f2f3ca4504efa3abc483b1fb35d5e (diff)
downloadbcm5719-llvm-7a33f779b97c8eab1f69766053bf63d3cc1ea813.tar.gz
bcm5719-llvm-7a33f779b97c8eab1f69766053bf63d3cc1ea813.zip
Change the AttributeImpl to hold a single Constant* for the values.
This Constant could be an aggregate to represent multiple values. llvm-svn: 174228
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/IR/Attributes.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/include/llvm/IR/Attributes.h b/llvm/include/llvm/IR/Attributes.h
index 63fd4fb1edc..ad3f6273a58 100644
--- a/llvm/include/llvm/IR/Attributes.h
+++ b/llvm/include/llvm/IR/Attributes.h
@@ -128,11 +128,13 @@ public:
/// \brief Return true if the attribute is present.
bool hasAttribute(AttrKind Val) const;
- /// \brief Return the kind of this attribute.
+ /// \brief Return the kind of this attribute: enum or string.
Constant *getAttributeKind() const;
- /// \brief Return the value (if present) of the non-target-specific attribute.
- ArrayRef<Constant*> getAttributeValues() const;
+ /// \brief Return the values (if present) of the attribute. This may be a
+ /// ConstantVector to represent a list of values associated with the
+ /// attribute.
+ Constant *getAttributeValues() const;
/// \brief Returns the alignment field of an attribute as a byte alignment
/// value.
OpenPOWER on IntegriCloud