diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-05-27 14:27:24 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-05-27 14:27:24 +0000 |
commit | 82de7d323d1d03764d3595e9d2d903437e9022f2 (patch) | |
tree | 7595c775ff1870e6961cec2801b5b1c24902ed99 /llvm/utils/TableGen/FastISelEmitter.cpp | |
parent | cfeacf56f03e5ce8bfb32537d64935b2f58e19ee (diff) | |
download | bcm5719-llvm-82de7d323d1d03764d3595e9d2d903437e9022f2.tar.gz bcm5719-llvm-82de7d323d1d03764d3595e9d2d903437e9022f2.zip |
Apply clang-tidy's misc-move-constructor-init throughout LLVM.
No functionality change intended, maybe a tiny performance improvement.
llvm-svn: 270997
Diffstat (limited to 'llvm/utils/TableGen/FastISelEmitter.cpp')
-rw-r--r-- | llvm/utils/TableGen/FastISelEmitter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/FastISelEmitter.cpp b/llvm/utils/TableGen/FastISelEmitter.cpp index ba96bff5d7d..debb12c4f51 100644 --- a/llvm/utils/TableGen/FastISelEmitter.cpp +++ b/llvm/utils/TableGen/FastISelEmitter.cpp @@ -24,6 +24,7 @@ #include "llvm/TableGen/Error.h" #include "llvm/TableGen/Record.h" #include "llvm/TableGen/TableGenBackend.h" +#include <utility> using namespace llvm; @@ -416,9 +417,7 @@ static std::string getLegalCName(std::string OpName) { return OpName; } -FastISelMap::FastISelMap(std::string instns) - : InstNS(instns) { -} +FastISelMap::FastISelMap(std::string instns) : InstNS(std::move(instns)) {} static std::string PhyRegForNode(TreePatternNode *Op, const CodeGenTarget &Target) { |