[llvm] r245190 - [TableGen] Move the ConversionRow vector into the ConversionTable instead of copying.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 16 14:27:08 PDT 2015


Author: ctopper
Date: Sun Aug 16 16:27:08 2015
New Revision: 245190

URL: http://llvm.org/viewvc/llvm-project?rev=245190&view=rev
Log:
[TableGen] Move the ConversionRow vector into the ConversionTable instead of copying.

Modified:
    llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp

Modified: llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp?rev=245190&r1=245189&r2=245190&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp Sun Aug 16 16:27:08 2015
@@ -1974,7 +1974,7 @@ static void emitConvertFuncs(CodeGenTarg
       continue;
 
     // Add the row to the table.
-    ConversionTable.push_back(ConversionRow);
+    ConversionTable.push_back(std::move(ConversionRow));
   }
 
   // Finish up the converter driver function.




More information about the llvm-commits mailing list