diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-10-04 16:55:56 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-10-04 16:55:56 +0000 |
commit | c6cc58e7032239529a5ceaab3dab4aa9e7f898e7 (patch) | |
tree | 4a5993f3e6b62d9070656d336bf365ee7a58f2ba /llvm/lib/CodeGen/StackMaps.cpp | |
parent | cda2aa823ede9f83577dc90c77063e87ab2debd3 (diff) | |
download | bcm5719-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/lib/CodeGen/StackMaps.cpp')
-rw-r--r-- | llvm/lib/CodeGen/StackMaps.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackMaps.cpp b/llvm/lib/CodeGen/StackMaps.cpp index adbb38e8b55..a32a7c150c4 100644 --- a/llvm/lib/CodeGen/StackMaps.cpp +++ b/llvm/lib/CodeGen/StackMaps.cpp @@ -235,7 +235,8 @@ void StackMaps::recordStackMapOpers(const MachineInstr &MI, uint64_t ID, MCSymbolRefExpr::Create(AP.CurrentFnSym, OutContext), OutContext); - CSInfos.push_back(CallsiteInfo(CSOffsetExpr, ID, Locations, LiveOuts)); + CSInfos.emplace_back(CSOffsetExpr, ID, std::move(Locations), + std::move(LiveOuts)); // Record the stack size of the current function. const MachineFrameInfo *MFI = AP.MF->getFrameInfo(); |