[Remarks] String tables should be move-only
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Tue, 23 Jul 2019 22:50:08 +0000 (22:50 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Tue, 23 Jul 2019 22:50:08 +0000 (22:50 +0000)
commit4287c95b08ab9b10cce50ab8139f536ea2d72f1d
treeed063ac093f8ab23b2ec4c91c1108c29c6228a0d
parent1cb102cac9dc8bc456ff752321c8774dd2e300dc
[Remarks] String tables should be move-only

Copying them is expensive. This allows the tables to be moved around at
lower cost, and allows a remarks::StringTable to be constructed from
a remarks::ParsedStringTable.

llvm-svn: 366864
llvm/include/llvm/Remarks/RemarkParser.h
llvm/include/llvm/Remarks/RemarkStringTable.h
llvm/lib/Remarks/RemarkParser.cpp
llvm/lib/Remarks/RemarkStringTable.cpp
llvm/lib/Remarks/YAMLRemarkParser.cpp
llvm/lib/Remarks/YAMLRemarkParser.h
llvm/unittests/Remarks/YAMLRemarksParsingTest.cpp