@@ -172,26 +197,13 @@ class Directive : public BaseRecord {
// Clang uses a different format for names of its directives enum.
std::string getClangAccSpelling() const {
-std::string Name = Def->getValueAsString("name").str();
+StringRef Name = Def->getValueAsString
https://github.com/mrkajetanp approved this pull request.
LGTM
https://github.com/llvm/llvm-project/pull/141762
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
@@ -172,26 +197,13 @@ class Directive : public BaseRecord {
// Clang uses a different format for names of its directives enum.
std::string getClangAccSpelling() const {
-std::string Name = Def->getValueAsString("name").str();
+StringRef Name = Def->getValueAsString