summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/FastISelEmitter.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-05-27 14:27:24 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-05-27 14:27:24 +0000
commit82de7d323d1d03764d3595e9d2d903437e9022f2 (patch)
tree7595c775ff1870e6961cec2801b5b1c24902ed99 /llvm/utils/TableGen/FastISelEmitter.cpp
parentcfeacf56f03e5ce8bfb32537d64935b2f58e19ee (diff)
downloadbcm5719-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.cpp5
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) {
OpenPOWER on IntegriCloud