diff options
author | Matthias Braun <matze@braunis.de> | 2016-12-04 05:48:16 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2016-12-04 05:48:16 +0000 |
commit | 4a86d456d3efc8796f6cc9986aa3b55964ef847f (patch) | |
tree | 51bdad775601f6fc5644416b09e97b65f491bbf8 /llvm/utils/TableGen/CodeGenInstruction.cpp | |
parent | 84bac184ea67a8d7b54dee4d513254fb662ee076 (diff) | |
download | bcm5719-llvm-4a86d456d3efc8796f6cc9986aa3b55964ef847f.tar.gz bcm5719-llvm-4a86d456d3efc8796f6cc9986aa3b55964ef847f.zip |
TableGen: Use StringRef instead of const std::string& in return vals.
This will allow to switch to a different string storage in an upcoming
commit.
llvm-svn: 288612
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenInstruction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.cpp b/llvm/utils/TableGen/CodeGenInstruction.cpp index 4e9f182589b..6007e1c5b61 100644 --- a/llvm/utils/TableGen/CodeGenInstruction.cpp +++ b/llvm/utils/TableGen/CodeGenInstruction.cpp @@ -647,8 +647,8 @@ CodeGenInstAlias::CodeGenInstAlias(Record *R, unsigned Variant, // Take care to instantiate each of the suboperands with the correct // nomenclature: $foo.bar - ResultOperands.emplace_back(Result->getArgName(AliasOpNo) + "." + - MIOI->getArgName(SubOp), + ResultOperands.emplace_back(Result->getArgName(AliasOpNo).str() + + "." + MIOI->getArgName(SubOp).str(), SubRec); ResultInstOperandIndex.push_back(std::make_pair(i, SubOp)); } |