summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/AsmWriterEmitter.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-07-15 18:24:03 +0000
committerDavid Greene <greened@obbligato.org>2009-07-15 18:24:03 +0000
commit11817374de96f88c1d66afbd4f9b17aa8910fb52 (patch)
tree9dce1a84c8e511f3ded97472d70324666015b6b5 /llvm/utils/TableGen/AsmWriterEmitter.cpp
parentf5d53d46b9037de22be7abfea2d7df17ab462811 (diff)
downloadbcm5719-llvm-11817374de96f88c1d66afbd4f9b17aa8910fb52.tar.gz
bcm5719-llvm-11817374de96f88c1d66afbd4f9b17aa8910fb52.zip
Get rid of postInstructionAction and call EmitComments directly.
llvm-svn: 75806
Diffstat (limited to 'llvm/utils/TableGen/AsmWriterEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/AsmWriterEmitter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/AsmWriterEmitter.cpp b/llvm/utils/TableGen/AsmWriterEmitter.cpp
index 92ad96ec948..d1cb7022d06 100644
--- a/llvm/utils/TableGen/AsmWriterEmitter.cpp
+++ b/llvm/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";
OpenPOWER on IntegriCloud