Skip to content

Commit ad9eba3

Browse files
committed
Changes required for upstream merge
Change-Id: Ib6d90e0fc6556016d48349523ad1563994f98d61
1 parent fe0ed52 commit ad9eba3

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

amd/comgr/src/comgr-disassembly.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ amd_comgr_status_t DisassemblyInfo::disassembleInstruction(uint64_t Address,
138138
MCInst Inst;
139139
std::string Annotations;
140140
raw_string_ostream AnnotationsStream(Annotations);
141-
if (DisAsm->getInstruction(Inst, Size, Buffer, Address, nulls(),
141+
if (DisAsm->getInstruction(Inst, Size, Buffer, Address,
142142
AnnotationsStream) != MCDisassembler::Success)
143143
return AMD_COMGR_STATUS_ERROR;
144144

amd/comgr/src/comgr-objdump.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,12 +1474,6 @@ void llvm::DisassemHelper::DisassembleObject(const ObjectFile *Obj,
14741474
// COMGR TBD: Get rid of ".text:"??
14751475
OutS << '\n' << std::get<1>(Symbols[si]) << ":\n";
14761476

1477-
#ifndef NDEBUG
1478-
raw_ostream &DebugOut = DebugFlag ? dbgs() : nulls();
1479-
#else
1480-
raw_ostream &DebugOut = nulls();
1481-
#endif
1482-
14831477
for (Index = Start; Index < End; Index += Size) {
14841478
MCInst Inst;
14851479

@@ -1601,8 +1595,7 @@ void llvm::DisassemHelper::DisassembleObject(const ObjectFile *Obj,
16011595
// Disassemble a real instruction or a data when disassemble all is
16021596
// provided
16031597
bool Disassembled = DisAsm->getInstruction(
1604-
Inst, Size, Bytes.slice(Index), SectionAddr + Index, DebugOut,
1605-
CommentStream);
1598+
Inst, Size, Bytes.slice(Index), SectionAddr + Index, CommentStream);
16061599
if (Size == 0)
16071600
Size = 1;
16081601

0 commit comments

Comments
 (0)