Skip to content

Commit 04c4cf4

Browse files
committed
Revert "[NFC][AMDGPU] Do not flush after printing every instruction (llvm#95237)"
This reverts commit ad9fe3b.
1 parent d3342e5 commit 04c4cf4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ void AMDGPUInstPrinter::printRegName(raw_ostream &OS, MCRegister Reg) const {
4343
void AMDGPUInstPrinter::printInst(const MCInst *MI, uint64_t Address,
4444
StringRef Annot, const MCSubtargetInfo &STI,
4545
raw_ostream &OS) {
46+
OS.flush();
4647
printInstruction(MI, Address, STI, OS);
4748
printAnnotation(OS, Annot);
4849
}

llvm/lib/Target/AMDGPU/MCTargetDesc/R600InstPrinter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ using namespace llvm;
2121
void R600InstPrinter::printInst(const MCInst *MI, uint64_t Address,
2222
StringRef Annot, const MCSubtargetInfo &STI,
2323
raw_ostream &O) {
24+
O.flush();
2425
printInstruction(MI, Address, O);
2526
printAnnotation(O, Annot);
2627
}

0 commit comments

Comments
 (0)