summaryrefslogtreecommitdiffstats
path: root/llvm/include
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
commit8e31efdbbfe49bace5eca17f9971367d30a1f90f (patch)
tree15a2d073d1931bd78572e054983228147dc76929 /llvm/include
parent1aa9d9e260d5579c6372af102a00205ddda2a1e3 (diff)
downloadbcm5719-llvm-8e31efdbbfe49bace5eca17f9971367d30a1f90f.tar.gz
bcm5719-llvm-8e31efdbbfe49bace5eca17f9971367d30a1f90f.zip
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. llvm-svn: 173660
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/IR/Attributes.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/include/llvm/IR/Attributes.h b/llvm/include/llvm/IR/Attributes.h
index e477b792a80..63f9d088375 100644
--- a/llvm/include/llvm/IR/Attributes.h
+++ b/llvm/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);
OpenPOWER on IntegriCloud