mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Use StringRef in TableGen emitted API for attribute (NFC)
llvm-svn: 283268
This commit is contained in:
parent
c0ce1c5675
commit
fd0cf3c2dc
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user