[llvm] r244426 - [TableGen] Make StringInit constructor take a StringRef instead of const std::string&. NFC.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 9 15:03:05 PDT 2015


Author: ctopper
Date: Sun Aug  9 17:03:04 2015
New Revision: 244426

URL: http://llvm.org/viewvc/llvm-project?rev=244426&view=rev
Log:
[TableGen] Make StringInit constructor take a StringRef instead of const std::string&. NFC.

Modified:
    llvm/trunk/include/llvm/TableGen/Record.h

Modified: llvm/trunk/include/llvm/TableGen/Record.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/TableGen/Record.h?rev=244426&r1=244425&r2=244426&view=diff
==============================================================================
--- llvm/trunk/include/llvm/TableGen/Record.h (original)
+++ llvm/trunk/include/llvm/TableGen/Record.h Sun Aug  9 17:03:04 2015
@@ -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;




More information about the llvm-commits mailing list