[llvm] r175016 - Add a default empty string to the 'value' of a string attribute.

Bill Wendling isanbard at gmail.com
Tue Feb 12 15:14:31 PST 2013


Author: void
Date: Tue Feb 12 17:14:31 2013
New Revision: 175016

URL: http://llvm.org/viewvc/llvm-project?rev=175016&view=rev
Log:
Add a default empty string to the 'value' of a string attribute.

Modified:
    llvm/trunk/include/llvm/IR/Attributes.h

Modified: llvm/trunk/include/llvm/IR/Attributes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Attributes.h?rev=175016&r1=175015&r2=175016&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Attributes.h (original)
+++ llvm/trunk/include/llvm/IR/Attributes.h Tue Feb 12 17:14:31 2013
@@ -418,7 +418,7 @@ public:
   AttrBuilder &addAttribute(Attribute A);
 
   /// \brief Add the target-dependent attribute to the builder.
-  AttrBuilder &addAttribute(StringRef A, StringRef V);
+  AttrBuilder &addAttribute(StringRef A, StringRef V = StringRef());
 
   /// \brief Remove an attribute from the builder.
   AttrBuilder &removeAttribute(Attribute::AttrKind Val);





More information about the llvm-commits mailing list