From 4a86d456d3efc8796f6cc9986aa3b55964ef847f Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Sun, 4 Dec 2016 05:48:16 +0000 Subject: 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 --- llvm/utils/TableGen/CodeGenInstruction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/utils/TableGen/CodeGenInstruction.cpp') 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)); } -- cgit v1.2.3