Add some additonal attribute helper functions. Test will be on follow
[oota-llvm.git] / include / llvm / IR / Attributes.h
index 30c096533774424f7e9865b7230986adc6950e5d..ddb8ea41c15149ac038faa61a5b250e28df10e2d 100644 (file)
@@ -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,