summaryrefslogtreecommitdiffstats
path: root/lib/IR
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-10 05:00:40 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-10 05:00:40 +0000
commit85b3fbecdfe934ac7519a8831c4bd262cba99d12 (patch)
treecd8cd8845931210756b75ae747257b4979087a98 /lib/IR
parent7dcb23a0522eb23c3a50f6c8249f10ccdf214993 (diff)
downloadexternal_llvm-85b3fbecdfe934ac7519a8831c4bd262cba99d12.zip
external_llvm-85b3fbecdfe934ac7519a8831c4bd262cba99d12.tar.gz
external_llvm-85b3fbecdfe934ac7519a8831c4bd262cba99d12.tar.bz2
Add accessor for the LLVMContext.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r--lib/IR/Attributes.cpp4
1 files changed, 4 insertions, 0 deletions
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(),