Skip to content

Commit fe0ed52

Browse files
committed
Changes required for upstream merge
Change-Id: I4547d9226bf208ff6817193861b1ccdf2a9f6a77
1 parent 196a609 commit fe0ed52

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

amd/comgr/src/comgr-disassembly.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ amd_comgr_status_t DisassemblyInfo::disassembleInstruction(uint64_t Address,
144144

145145
std::string InstStr;
146146
raw_string_ostream InstStream(InstStr);
147-
IP->printInst(&Inst, InstStream, AnnotationsStream.str(), *STI);
147+
IP->printInst(&Inst, Address, AnnotationsStream.str(), *STI, InstStream);
148148

149149
PrintInstruction(InstStream.str().c_str(), UserData);
150150

amd/comgr/src/comgr-objdump.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ class PrettyPrinter {
560560
dumpBytes(Bytes, OS);
561561
}
562562
if (MI)
563-
IP.printInst(MI, OS, "", STI);
563+
IP.printInst(MI, Address.Address, "", STI, OS);
564564
else
565565
OS << " <unknown>";
566566
}
@@ -593,7 +593,7 @@ class HexagonPrettyPrinter : public PrettyPrinter {
593593
std::string Buffer;
594594
{
595595
raw_string_ostream TempStream(Buffer);
596-
IP.printInst(MI, TempStream, "", STI);
596+
IP.printInst(MI, Address.Address, "", STI, TempStream);
597597
}
598598
StringRef Contents(Buffer);
599599
// Split off bundle attributes
@@ -645,7 +645,7 @@ class AMDGCNPrettyPrinter : public PrettyPrinter {
645645
SmallString<40> InstStr;
646646
raw_svector_ostream IS(InstStr);
647647

648-
IP.printInst(MI, IS, "", STI);
648+
IP.printInst(MI, Address.Address, "", STI, IS);
649649

650650
OS << left_justify(IS.str(), 60)
651651
<< format("// %012" PRIX64 ": ", Address.Address);
@@ -677,7 +677,7 @@ class BPFPrettyPrinter : public PrettyPrinter {
677677
dumpBytes(Bytes, OS);
678678
}
679679
if (MI)
680-
IP.printInst(MI, OS, "", STI);
680+
IP.printInst(MI, Address.Address, "", STI, OS);
681681
else
682682
OS << " <unknown>";
683683
}

0 commit comments

Comments
 (0)