Fix some C++ value / reference semantics issues.
authorZachary Turner <zturner@google.com>
Mon, 9 Oct 2017 18:50:29 +0000 (18:50 +0000)
committerZachary Turner <zturner@google.com>
Mon, 9 Oct 2017 18:50:29 +0000 (18:50 +0000)
commit514b7105b52fb98939f2b982651ec876582250f4
tree82c677faaf33dd0040f4534c4f9b51145469b7d8
parent4f5a3d5d6f15d8624cd78b53246d633ca54619c1
Fix some C++ value / reference semantics issues.

Some functions were taking Twine's not by const&, these are all
fixed to take by const&.  We also had a case where some functions
were overloaded to accept by const& and &&.  Now there is only
one version which accepts by value and move's the value.

llvm-svn: 315229
llvm/tools/llvm-rc/ResourceFileWriter.cpp
llvm/tools/llvm-rc/ResourceFileWriter.h
llvm/tools/llvm-rc/ResourceScriptParser.cpp
llvm/tools/llvm-rc/ResourceScriptParser.h