llvm.org GIT mirror llvm / e3397d8
[llvm-objdump] Remove unnecessary indentation when dumping ELF data. Reviewers: MaskRay, jhenderson, rupprecht Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D63393 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363858 91177308-0d34-0410-b5e6-96231b3b80d8 Yuanfang Chen 29 days ago
2 changed file(s) with 4 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
None // RUN: llvm-mc %s -filetype=obj -triple=x86_64-pc-linux | llvm-objdump -d - | FileCheck %s
0 // RUN: llvm-mc %s -filetype=obj -triple=x86_64-pc-linux | llvm-objdump -d - | FileCheck --strict-whitespace --match-full-lines %s
11 .text
22 .globl foo
33 .type foo, @function
1313 bar:
1414 .string "test string"
1515
16 // CHECK: b: 74 65 73 74 20 73 74 72 test str
17 // CHECK-NEXT: 13: 69 6e 67 00 ing.
18
16 // CHECK: b: 74 65 73 74 20 73 74 72 test str
17 // CHECK-NEXT: 13: 69 6e 67 00 ing.
995995 int NumBytes = 0;
996996
997997 for (; Index < End; ++Index) {
998 if (NumBytes == 0) {
998 if (NumBytes == 0)
999999 outs() << format("%8" PRIx64 ":", SectionAddr + Index);
1000 outs() << "\t";
1001 }
10021000 Byte = Bytes.slice(Index)[0];
10031001 outs() << format(" %02x", Byte);
10041002 AsciiData[NumBytes] = isPrint(Byte) ? Byte : '.';