Remove unnecessary copying or replace it with moves in a bunch of places.

NFC.

llvm-svn: 219061
This commit is contained in:
Benjamin Kramer
2014-10-04 16:55:56 +00:00
parent cda2aa823e
commit c6cc58e703
15 changed files with 76 additions and 72 deletions

View File

@@ -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();