diff options
| author | Craig Topper <craig.topper@gmail.com> | 2017-05-31 21:12:46 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2017-05-31 21:12:46 +0000 |
| commit | bcd3c37f4a4f6d7b6b66984bf69a69b85364b017 (patch) | |
| tree | aaa44eba0ecb65d9fa05cf813609e0af1f0bea2b /llvm/utils/TableGen/Attributes.cpp | |
| parent | 8b7061049403323a2872e031cbb7222b2a85ff97 (diff) | |
| download | bcm5719-llvm-bcd3c37f4a4f6d7b6b66984bf69a69b85364b017.tar.gz bcm5719-llvm-bcd3c37f4a4f6d7b6b66984bf69a69b85364b017.zip | |
[TableGen] Adapt more places to getValueAsString now returning a StringRef instead of a std::string.
llvm-svn: 304347
Diffstat (limited to 'llvm/utils/TableGen/Attributes.cpp')
| -rw-r--r-- | llvm/utils/TableGen/Attributes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/Attributes.cpp b/llvm/utils/TableGen/Attributes.cpp index 927f6e0e5b4..d64d30e18c3 100644 --- a/llvm/utils/TableGen/Attributes.cpp +++ b/llvm/utils/TableGen/Attributes.cpp @@ -115,7 +115,7 @@ void Attributes::emitFnAttrCompatCheck(raw_ostream &OS, bool IsStringAttr) { Records.getAllDerivedDefinitions("CompatRule"); for (auto *Rule : CompatRules) { - std::string FuncName = Rule->getValueAsString("CompatFunc"); + StringRef FuncName = Rule->getValueAsString("CompatFunc"); OS << " Ret &= " << FuncName << "(Caller, Callee);\n"; } @@ -129,7 +129,7 @@ void Attributes::emitFnAttrCompatCheck(raw_ostream &OS, bool IsStringAttr) { << " const Function &Callee) {\n"; for (auto *Rule : MergeRules) { - std::string FuncName = Rule->getValueAsString("MergeFunc"); + StringRef FuncName = Rule->getValueAsString("MergeFunc"); OS << " " << FuncName << "(Caller, Callee);\n"; } |

