diff --git a/llvm/test/tools/llvm-objdump/X86/disassemble-code-data-mix.s b/llvm/test/tools/llvm-objdump/X86/disassemble-code-data-mix.s --- a/llvm/test/tools/llvm-objdump/X86/disassemble-code-data-mix.s +++ b/llvm/test/tools/llvm-objdump/X86/disassemble-code-data-mix.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc %s -filetype=obj -triple=x86_64-pc-linux | llvm-objdump -d - | FileCheck %s +// RUN: llvm-mc %s -filetype=obj -triple=x86_64-pc-linux | llvm-objdump -d - | tr '\t' '|' | FileCheck %s .text .globl foo .type foo, @function diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -996,10 +996,8 @@ int NumBytes = 0; for (; Index < End; ++Index) { - if (NumBytes == 0) { + if (NumBytes == 0) outs() << format("%8" PRIx64 ":", SectionAddr + Index); - outs() << "\t"; - } Byte = Bytes.slice(Index)[0]; outs() << format(" %02x", Byte); AsciiData[NumBytes] = isPrint(Byte) ? Byte : '.';