From: Craig Topper Date: Sun, 9 Aug 2015 22:03:04 +0000 (+0000) Subject: [TableGen] Make StringInit constructor take a StringRef instead of const std::string... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=03973a139d60ddecc894d7fec07266edf4c4a061;p=oota-llvm.git [TableGen] Make StringInit constructor take a StringRef instead of const std::string&. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244426 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/TableGen/Record.h b/include/llvm/TableGen/Record.h index b4642c99119..67fee436bad 100644 --- a/include/llvm/TableGen/Record.h +++ b/include/llvm/TableGen/Record.h @@ -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;