diff options
author | Reed Kotler <rkotler@mips.com> | 2013-03-13 20:20:08 +0000 |
---|---|---|
committer | Reed Kotler <rkotler@mips.com> | 2013-03-13 20:20:08 +0000 |
commit | 9106f73246168fb30d26fb14085c0b3d81fcd350 (patch) | |
tree | 9754853200a2e8d629b468eff84d8600b70fb274 /include/llvm/IR/Attributes.h | |
parent | 321aded62349b7369dc999a104944b5304199d83 (diff) | |
download | llvm-9106f73246168fb30d26fb14085c0b3d81fcd350.tar.gz llvm-9106f73246168fb30d26fb14085c0b3d81fcd350.tar.bz2 llvm-9106f73246168fb30d26fb14085c0b3d81fcd350.tar.xz |
Add some additonal attribute helper functions. Test will be on follow
up putback to clang for mips16.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176968 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR/Attributes.h')
-rw-r--r-- | include/llvm/IR/Attributes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h index 30c0965337..ddb8ea41c1 100644 --- a/include/llvm/IR/Attributes.h +++ b/include/llvm/IR/Attributes.h @@ -247,6 +247,11 @@ public: AttributeSet addAttribute(LLVMContext &C, unsigned Idx, Attribute::AttrKind Attr) const; + /// \brief Add an attribute to the attribute set at the given index. Since + /// attribute sets are immutable, this returns a new set. + AttributeSet addAttribute(LLVMContext &C, unsigned Idx, + StringRef Kind) const; + /// \brief Add attributes to the attribute set at the given index. Since /// attribute sets are immutable, this returns a new set. AttributeSet addAttributes(LLVMContext &C, unsigned Idx, |