diff options
| author | David Greene <greened@obbligato.org> | 2009-07-15 18:24:03 +0000 |
|---|---|---|
| committer | David Greene <greened@obbligato.org> | 2009-07-15 18:24:03 +0000 |
| commit | fe7b16fe6529a6890adf94ce3ccc463ea939992a (patch) | |
| tree | c9a789cce56e8154c636a80249af1a638def7fb8 /utils/TableGen/AsmWriterEmitter.cpp | |
| parent | 87d1f47cb697bf05bf4a7c09b44ae6c893563d89 (diff) | |
Get rid of postInstructionAction and call EmitComments directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75806 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/AsmWriterEmitter.cpp')
| -rw-r--r-- | utils/TableGen/AsmWriterEmitter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/TableGen/AsmWriterEmitter.cpp b/utils/TableGen/AsmWriterEmitter.cpp index 92ad96ec94..d1cb7022d0 100644 --- a/utils/TableGen/AsmWriterEmitter.cpp +++ b/utils/TableGen/AsmWriterEmitter.cpp @@ -383,7 +383,7 @@ FindUniqueOperandCommands(std::vector<std::string> &UniqueOperandCommands, // If this is the last operand, emit a return. if (Inst->Operands.size() == 1) { - Command += " postInstructionAction(*MI);\n"; + Command += " EmitComments(*MI);\n"; // Print the final newline Command += " O << \"\\n\";\n"; Command += " return true;\n"; @@ -454,7 +454,7 @@ FindUniqueOperandCommands(std::vector<std::string> &UniqueOperandCommands, // If this is the last operand, emit a return after the code. if (FirstInst->Operands.size() == Op+1) { - Command += " postInstructionAction(*MI);\n"; + Command += " EmitComments(*MI);\n"; // Print the final newline Command += " O << \"\\n\";\n"; Command += " return true;\n"; @@ -570,7 +570,7 @@ void AsmWriterEmitter::run(raw_ostream &O) { // just opcode strings to use. if (isFirst) { // Do the post instruction processing and print the final newline - UniqueOperandCommands.push_back(" postInstructionAction(*MI);\n O << \"\\n\";\n return true;\n"); + UniqueOperandCommands.push_back(" EmitComments(*MI);\n O << \"\\n\";\n return true;\n"); isFirst = false; } @@ -745,7 +745,7 @@ void AsmWriterEmitter::run(raw_ostream &O) { EmitInstructions(Instructions, O); O << " }\n"; - O << " postInstructionAction(*MI);\n"; + O << " EmitComments(*MI);\n"; // Print the final newline O << " O << \"\\n\";\n"; O << " return true;\n"; |
