summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-10-04 16:55:56 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-10-04 16:55:56 +0000
commitc6cc58e7032239529a5ceaab3dab4aa9e7f898e7 (patch)
tree4a5993f3e6b62d9070656d336bf365ee7a58f2ba /llvm/include
parentcda2aa823ede9f83577dc90c77063e87ab2debd3 (diff)
downloadbcm5719-llvm-c6cc58e7032239529a5ceaab3dab4aa9e7f898e7.tar.gz
bcm5719-llvm-c6cc58e7032239529a5ceaab3dab4aa9e7f898e7.zip
Remove unnecessary copying or replace it with moves in a bunch of places.
NFC. llvm-svn: 219061
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/CodeGen/StackMaps.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/CodeGen/StackMaps.h b/llvm/include/llvm/CodeGen/StackMaps.h
index dd22ab0b54c..1bcd739f552 100644
--- a/llvm/include/llvm/CodeGen/StackMaps.h
+++ b/llvm/include/llvm/CodeGen/StackMaps.h
@@ -152,9 +152,9 @@ private:
LiveOutVec LiveOuts;
CallsiteInfo() : CSOffsetExpr(nullptr), ID(0) {}
CallsiteInfo(const MCExpr *CSOffsetExpr, uint64_t ID,
- LocationVec &Locations, LiveOutVec &LiveOuts)
- : CSOffsetExpr(CSOffsetExpr), ID(ID), Locations(Locations),
- LiveOuts(LiveOuts) {}
+ LocationVec &&Locations, LiveOutVec &&LiveOuts)
+ : CSOffsetExpr(CSOffsetExpr), ID(ID), Locations(std::move(Locations)),
+ LiveOuts(std::move(LiveOuts)) {}
};
typedef std::vector<CallsiteInfo> CallsiteInfoList;
OpenPOWER on IntegriCloud