From bd4ea16bf39033271255dfbcc8ffb636a7de26bb Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 21 Jan 2013 21:57:28 +0000 Subject: 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 --- llvm/lib/IR/AttributeImpl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/IR/AttributeImpl.h') 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 values); AttributeImpl(LLVMContext &C, StringRef data); + LLVMContext &getContext() { return Context; } + ArrayRef getValues() const { return Vals; } bool hasAttribute(Attribute::AttrKind A) const; -- cgit v1.2.3