From: Mehdi Amini Date: Tue, 4 Oct 2016 23:31:39 +0000 (+0000) Subject: Use StringRef in TableGen emitted API for attribute (NFC) X-Git-Tag: android-x86-7.1-r4~26265 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=13e0592eaf842b18f0b7f4bbfb3f5358bf57ae10;p=android-x86%2Fexternal-llvm.git Use StringRef in TableGen emitted API for attribute (NFC) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283268 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/Attributes.cpp b/utils/TableGen/Attributes.cpp index 58dbe5767ad..927f6e0e5b4 100644 --- a/utils/TableGen/Attributes.cpp +++ b/utils/TableGen/Attributes.cpp @@ -156,7 +156,7 @@ void Attributes::printStrBoolAttrClasses(raw_ostream &OS, OS << "// StrBoolAttr classes\n"; for (const auto *R : Records) { OS << "struct " << R->getName() << "Attr : StrBoolAttr {\n"; - OS << " static const char *getKind() {\n"; + OS << " static StringRef getKind() {\n"; OS << " return \"" << R->getValueAsString("AttrString") << "\";\n"; OS << " }\n"; OS << "};\n";