projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edb0911
)
Move a vector instead of copying it.
author
Craig Topper
<craig.topper@gmail.com>
Tue, 25 Nov 2014 20:11:25 +0000
(20:11 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Tue, 25 Nov 2014 20:11:25 +0000
(20:11 +0000)
llvm-svn: 222779
llvm/utils/TableGen/AsmWriterEmitter.cpp
patch
|
blob
|
history
diff --git
a/llvm/utils/TableGen/AsmWriterEmitter.cpp
b/llvm/utils/TableGen/AsmWriterEmitter.cpp
index
4089ede
..
72cd07e
100644
(file)
--- a/
llvm/utils/TableGen/AsmWriterEmitter.cpp
+++ b/
llvm/utils/TableGen/AsmWriterEmitter.cpp
@@
-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)
);
}