aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/IR/Attributes.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-07-25 18:34:24 +0000
committerBill Wendling <isanbard@gmail.com>2013-07-25 18:34:24 +0000
commit9e2ef7780b91d8e01a9ab172f80272fc94f6956b (patch)
tree423c9eb78ab648f090a38aca6ae2e5f29fe2ed6e /include/llvm/IR/Attributes.h
parent4c9d299d80f367a7fa1e97084613565a5956532f (diff)
downloadexternal_llvm-9e2ef7780b91d8e01a9ab172f80272fc94f6956b.zip
external_llvm-9e2ef7780b91d8e01a9ab172f80272fc94f6956b.tar.gz
external_llvm-9e2ef7780b91d8e01a9ab172f80272fc94f6956b.tar.bz2
Add a way to add a kind-value string pair to an attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR/Attributes.h')
-rw-r--r--include/llvm/IR/Attributes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h
index 0bf59cf..2183758 100644
--- a/include/llvm/IR/Attributes.h
+++ b/include/llvm/IR/Attributes.h
@@ -250,6 +250,8 @@ public:
/// attribute sets are immutable, this returns a new set.
AttributeSet addAttribute(LLVMContext &C, unsigned Index,
StringRef Kind) const;
+ AttributeSet addAttribute(LLVMContext &C, unsigned Index,
+ StringRef Kind, StringRef Value) const;
/// \brief Add attributes to the attribute set at the given index. Since
/// attribute sets are immutable, this returns a new set.