[TableGen] Make StringInit constructor take a StringRef instead of const std::string...
authorCraig Topper <craig.topper@gmail.com>
Sun, 9 Aug 2015 22:03:04 +0000 (22:03 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 9 Aug 2015 22:03:04 +0000 (22:03 +0000)
llvm-svn: 244426

llvm/include/llvm/TableGen/Record.h

index b4642c9..67fee43 100644 (file)
@@ -547,7 +547,7 @@ public:
 class StringInit : public TypedInit {
   std::string Value;
 
-  explicit StringInit(const std::string &V)
+  explicit StringInit(StringRef V)
     : TypedInit(IK_StringInit, StringRecTy::get()), Value(V) {}
 
   StringInit(const StringInit &Other) = delete;