summaryrefslogtreecommitdiff
path: root/include/llvm/IR/Attributes.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-28 05:44:14 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-28 05:44:14 +0000
commit98b92f3bf5770e02498549e24b3db75d5862c173 (patch)
treebf8a49db09a273259325d5c6db3d1b2a5d7e3a49 /include/llvm/IR/Attributes.h
parent49f6060f16aec4024d644a6ec4ddd3de9b3e8821 (diff)
downloadllvm-98b92f3bf5770e02498549e24b3db75d5862c173.tar.gz
llvm-98b92f3bf5770e02498549e24b3db75d5862c173.tar.bz2
llvm-98b92f3bf5770e02498549e24b3db75d5862c173.tar.xz
Rewrite the removeAttr() method.
This now uses the AttributeSet object instead of the Attribute / AttributeWithIndex objects. It's fairly simple now. It goes through all of the subsets before the one we're modifying, adds them to the new set. It then adds the modified subset (with the requested attributes removed). And then adds the rest of the subsets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173660 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR/Attributes.h')
-rw-r--r--include/llvm/IR/Attributes.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h
index e477b792a8..63f9d08837 100644
--- a/include/llvm/IR/Attributes.h
+++ b/include/llvm/IR/Attributes.h
@@ -216,16 +216,6 @@ private:
/// for the result are denoted with Idx = 0.
Attribute getAttributes(unsigned Idx) const;
- /// \brief Add the specified attribute at the specified index to this
- /// attribute list. Since attribute lists are immutable, this returns the new
- /// list.
- AttributeSet addAttr(LLVMContext &C, unsigned Idx, AttributeSet Attrs) const;
-
- /// \brief Remove the specified attribute at the specified index from this
- /// attribute list. Since attribute lists are immutable, this returns the new
- /// list.
- AttributeSet removeAttr(LLVMContext &C, unsigned Idx, Attribute Attrs) const;
-
/// \brief Create an AttributeSet from the AttributeWithIndex structures.
/// N.B. this is only temporary. It will be disappearing in the future.
static AttributeSet get(LLVMContext &C, ArrayRef<AttributeWithIndex> Attrs);