aboutsummaryrefslogtreecommitdiff
path: root/lib/IR/AttributeImpl.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-05 01:36:54 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-05 01:36:54 +0000
commit1bbd644301ed4d8a7efd4ceb15f71c56fa914f28 (patch)
tree01f782ee5c5506a9b2f61bb5cc69e58f32a34a65 /lib/IR/AttributeImpl.h
parent024328ea49e8321f358bd68bf6c077d5f5323413 (diff)
Add a method to create an AttributeSet from an AttrBuilder.
The Attribute class is eventually going to represent one attribute. So we need this class to create the set of attributes. Add some iterator methods to the builder to access its internal bits in a nice way. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171586 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/AttributeImpl.h')
-rw-r--r--lib/IR/AttributeImpl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/IR/AttributeImpl.h b/lib/IR/AttributeImpl.h
index 42b4fe36b2..a2a5218d80 100644
--- a/lib/IR/AttributeImpl.h
+++ b/lib/IR/AttributeImpl.h
@@ -29,6 +29,7 @@ class LLVMContext;
/// \brief This class represents a single, uniqued attribute. That attribute
/// could be a single enum, a tuple, or a string.
class AttributeImpl : public FoldingSetNode {
+ LLVMContext &Context;
Constant *Data;
SmallVector<Constant*, 0> Vals;
public:
@@ -47,7 +48,10 @@ public:
bool hasAttributes() const;
uint64_t getAlignment() const;
+ void setAlignment(unsigned Align);
+
uint64_t getStackAlignment() const;
+ void setStackAlignment(unsigned Align);
bool operator==(Attribute::AttrKind Kind) const;
bool operator!=(Attribute::AttrKind Kind) const;