summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/AttributeImpl.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-21 21:57:28 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-21 21:57:28 +0000
commitbd4ea16bf39033271255dfbcc8ffb636a7de26bb (patch)
tree1f7b638c81daf44cefb27e811c4c3f2003c0a633 /llvm/lib/IR/AttributeImpl.h
parent9d86a4a3b636abc9871108d0ffecb990b824f3dd (diff)
downloadbcm5719-llvm-bd4ea16bf39033271255dfbcc8ffb636a7de26bb.tar.gz
bcm5719-llvm-bd4ea16bf39033271255dfbcc8ffb636a7de26bb.zip
Make AttributeSet::getFnAttributes() return an AttributeSet instead of an Attribute.
This is more code to isolate the use of the Attribute class to that of just holding one attribute instead of a collection of attributes. llvm-svn: 173094
Diffstat (limited to 'llvm/lib/IR/AttributeImpl.h')
-rw-r--r--llvm/lib/IR/AttributeImpl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/AttributeImpl.h b/llvm/lib/IR/AttributeImpl.h
index 10f30e740c7..b5d292ee275 100644
--- a/llvm/lib/IR/AttributeImpl.h
+++ b/llvm/lib/IR/AttributeImpl.h
@@ -39,6 +39,8 @@ public:
ArrayRef<Constant*> values);
AttributeImpl(LLVMContext &C, StringRef data);
+ LLVMContext &getContext() { return Context; }
+
ArrayRef<Constant*> getValues() const { return Vals; }
bool hasAttribute(Attribute::AttrKind A) const;
OpenPOWER on IntegriCloud