From 85b3fbecdfe934ac7519a8831c4bd262cba99d12 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Sun, 10 Feb 2013 05:00:40 +0000 Subject: Add accessor for the LLVMContext. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174824 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/Attributes.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/IR') diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp index 99fafae..04e95ef 100644 --- a/lib/IR/Attributes.cpp +++ b/lib/IR/Attributes.cpp @@ -709,6 +709,10 @@ AttributeSet AttributeSet::removeAttributes(LLVMContext &C, unsigned Idx, // AttributeSet Accessor Methods //===----------------------------------------------------------------------===// +LLVMContext &AttributeSet::getContext() const { + return pImpl->getContext(); +} + AttributeSet AttributeSet::getParamAttributes(unsigned Idx) const { return pImpl && hasAttributes(Idx) ? AttributeSet::get(pImpl->getContext(), -- cgit v1.1