Move a vector instead of copying it.
authorCraig Topper <craig.topper@gmail.com>
Tue, 25 Nov 2014 20:11:25 +0000 (20:11 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 25 Nov 2014 20:11:25 +0000 (20:11 +0000)
llvm-svn: 222779

llvm/utils/TableGen/AsmWriterEmitter.cpp

index 4089ede..72cd07e 100644 (file)
@@ -350,7 +350,7 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) {
   // in the opcode-indexed table.
   unsigned BitsLeft = 64-AsmStrBits;
 
-  std::vector<std::vector<std::string> > TableDrivenOperandPrinters;
+  std::vector<std::vector<std::string>> TableDrivenOperandPrinters;
 
   while (1) {
     std::vector<std::string> UniqueOperandCommands;
@@ -393,7 +393,7 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) {
     }
 
     // Remember the handlers for this set of operands.
-    TableDrivenOperandPrinters.push_back(UniqueOperandCommands);
+    TableDrivenOperandPrinters.push_back(std::move(UniqueOperandCommands));
   }