|
15 | 15 | #include "Common/CodeGenTarget.h"
|
16 | 16 | #include "X86RecognizableInstr.h"
|
17 | 17 | #include "llvm/ADT/StringSwitch.h"
|
18 |
| -#include "llvm/Support/FormattedStream.h" |
19 | 18 | #include "llvm/Support/X86FoldTablesUtils.h"
|
20 | 19 | #include "llvm/TableGen/Record.h"
|
21 | 20 | #include "llvm/TableGen/TableGenBackend.h"
|
@@ -95,7 +94,7 @@ class X86FoldTablesEmitter {
|
95 | 94 | const CodeGenInstruction *MemInst)
|
96 | 95 | : RegInst(RegInst), MemInst(MemInst) {}
|
97 | 96 |
|
98 |
| - void print(formatted_raw_ostream &OS) const { |
| 97 | + void print(raw_ostream &OS) const { |
99 | 98 | OS.indent(2);
|
100 | 99 | OS << "{X86::" << RegInst->TheDef->getName() << ", ";
|
101 | 100 | OS << "X86::" << MemInst->TheDef->getName() << ", ";
|
@@ -222,7 +221,7 @@ class X86FoldTablesEmitter {
|
222 | 221 | // Print the given table as a static const C++ array of type
|
223 | 222 | // X86FoldTableEntry.
|
224 | 223 | void printTable(const FoldTable &Table, StringRef TableName,
|
225 |
| - formatted_raw_ostream &OS) { |
| 224 | + raw_ostream &OS) { |
226 | 225 | OS << "static const X86FoldTableEntry " << TableName << "[] = {\n";
|
227 | 226 |
|
228 | 227 | for (auto &E : Table)
|
@@ -619,9 +618,7 @@ void X86FoldTablesEmitter::updateTables(const CodeGenInstruction *RegInst,
|
619 | 618 | }
|
620 | 619 | }
|
621 | 620 |
|
622 |
| -void X86FoldTablesEmitter::run(raw_ostream &O) { |
623 |
| - formatted_raw_ostream OS(O); |
624 |
| - |
| 621 | +void X86FoldTablesEmitter::run(raw_ostream &OS) { |
625 | 622 | // Holds all memory instructions
|
626 | 623 | std::vector<const CodeGenInstruction *> MemInsts;
|
627 | 624 | // Holds all register instructions - divided according to opcode.
|
|
0 commit comments