Skip to content

Commit 3938a2f

Browse files
committed
fix a build error in llvm-objdump.cpp
1 parent 2a3d7b0 commit 3938a2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-objdump/llvm-objdump.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,7 @@ disassembleObject(ObjectFile &Obj, const ObjectFile &DbgObj,
18911891
unwrapOrError(Section.getContents(), Obj.getFileName()));
18921892

18931893
std::vector<std::unique_ptr<std::string>> SynthesizedLabelNames;
1894-
if (Obj.isELF() && Obj.isAMDGCN()) {
1894+
if (Obj.isELF() && Obj.getArch() == Triple::amdgcn) {
18951895
// AMDGPU disassembler uses symbolizer for printing labels
18961896
addSymbolizer(*DT->Context, DT->TheTarget, TripleName, DT->DisAsm.get(),
18971897
SectionAddr, Bytes, Symbols, SynthesizedLabelNames);

0 commit comments

Comments
 (0)