summaryrefslogtreecommitdiff
path: root/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
commit5a4041e7282ca1dba93fe1a97c8260c0ef621f5d (patch)
tree9935c2330dd4c2bbd88aaee9bc89934b4ff61873 /include
parent83474ee594b5b14e9071564814a90571805cc433 (diff)
downloadllvm-5a4041e7282ca1dba93fe1a97c8260c0ef621f5d.tar.gz
llvm-5a4041e7282ca1dba93fe1a97c8260c0ef621f5d.tar.bz2
llvm-5a4041e7282ca1dba93fe1a97c8260c0ef621f5d.tar.xz
Change the AttributeImpl to hold a single Constant* for the values.
This Constant could be an aggregate to represent multiple values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/IR/Attributes.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h
index 63fd4fb1ed..ad3f6273a5 100644
--- a/include/llvm/IR/Attributes.h
+++ b/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.