aboutsummaryrefslogtreecommitdiffstats
path: root/lib/IR
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-22 00:53:12 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-22 00:53:12 +0000
commite4e85f17564c28cd571dda30146c3f310521acf0 (patch)
tree83651d7a60f4eda42be43032a4488e434ba0a01d /lib/IR
parentda6d5623aefeb3c77a610954c77605107e1532b8 (diff)
downloadexternal_llvm-e4e85f17564c28cd571dda30146c3f310521acf0.zip
external_llvm-e4e85f17564c28cd571dda30146c3f310521acf0.tar.gz
external_llvm-e4e85f17564c28cd571dda30146c3f310521acf0.tar.bz2
Add a new method that adds the AttributeSet at the given index. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r--lib/IR/Attributes.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp
index fe6366d..420b2e8 100644
--- a/lib/IR/Attributes.cpp
+++ b/lib/IR/Attributes.cpp
@@ -691,14 +691,9 @@ bool AttributeSet::hasAttrSomewhere(Attribute::AttrKind Attr) const {
return false;
}
-AttributeSet AttributeSet::addRetAttributes(LLVMContext &C,
- AttributeSet Attrs) const {
- return addAttr(C, ReturnIndex, Attrs.getAttributes(ReturnIndex));
-}
-
-AttributeSet AttributeSet::addFnAttributes(LLVMContext &C,
- AttributeSet Attrs) const {
- return addAttr(C, FunctionIndex, Attrs.getAttributes(FunctionIndex));
+AttributeSet AttributeSet::addAttributes(LLVMContext &C, unsigned Idx,
+ AttributeSet Attrs) const {
+ return addAttr(C, Idx, Attrs.getAttributes(Idx));
}
AttributeSet AttributeSet::addAttr(LLVMContext &C, unsigned Idx,