diff options
| author | Fangrui Song <maskray@google.com> | 2019-05-01 09:30:45 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-05-01 09:30:45 +0000 |
| commit | 324ace4b5c2d723a1da39bf493444913751f495e (patch) | |
| tree | f1e63fc89a8c631a86d16a78ded7645993b1d268 /clang | |
| parent | 6afcdcf9ab3130c4397ee7f4fc4f67b723dadc7d (diff) | |
| download | bcm5719-llvm-324ace4b5c2d723a1da39bf493444913751f495e.tar.gz bcm5719-llvm-324ace4b5c2d723a1da39bf493444913751f495e.zip | |
Change llvm-{objdump,readobj} -long-option to --long-option or well-known short options in tests. NFC
llvm-svn: 359662
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/test/CodeGen/split-debug-filename.c | 4 | ||||
| -rw-r--r-- | clang/test/CodeGen/split-debug-single-file.c | 4 | ||||
| -rw-r--r-- | clang/test/CodeGen/thinlto-split-dwarf.c | 4 | ||||
| -rw-r--r-- | clang/test/Driver/as-dwarf-cie.s | 2 | ||||
| -rw-r--r-- | clang/test/Driver/embed-bitcode.s | 2 | ||||
| -rw-r--r-- | clang/test/Modules/pch_container.m | 4 |
6 files changed, 10 insertions, 10 deletions
diff --git a/clang/test/CodeGen/split-debug-filename.c b/clang/test/CodeGen/split-debug-filename.c index 99f89a74145..b8ce639f0fe 100644 --- a/clang/test/CodeGen/split-debug-filename.c +++ b/clang/test/CodeGen/split-debug-filename.c @@ -1,8 +1,8 @@ // REQUIRES: x86-registered-target // RUN: %clang_cc1 -debug-info-kind=limited -split-dwarf-file foo.dwo -S -emit-llvm -o - %s | FileCheck %s // RUN: %clang_cc1 -debug-info-kind=limited -enable-split-dwarf -split-dwarf-file foo.dwo -S -emit-llvm -o - %s | FileCheck --check-prefix=VANILLA %s -// RUN: %clang_cc1 -triple x86_64-unknown-linux -debug-info-kind=limited -enable-split-dwarf -split-dwarf-file %t.dwo -emit-obj -o - %s | llvm-objdump -section-headers - | FileCheck --check-prefix=O %s -// RUN: llvm-objdump -section-headers %t.dwo | FileCheck --check-prefix=DWO %s +// RUN: %clang_cc1 -triple x86_64-unknown-linux -debug-info-kind=limited -enable-split-dwarf -split-dwarf-file %t.dwo -emit-obj -o - %s | llvm-readobj -S - | FileCheck --check-prefix=O %s +// RUN: llvm-readobj -S %t.dwo | FileCheck --check-prefix=DWO %s int main (void) { return 0; diff --git a/clang/test/CodeGen/split-debug-single-file.c b/clang/test/CodeGen/split-debug-single-file.c index ffbc127a463..5987dc07ab8 100644 --- a/clang/test/CodeGen/split-debug-single-file.c +++ b/clang/test/CodeGen/split-debug-single-file.c @@ -3,13 +3,13 @@ // Testing to ensure -enable-split-dwarf=single allows to place .dwo sections into regular output object. // RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \ // RUN: -enable-split-dwarf=single -split-dwarf-file %t.o -emit-obj -o %t.o %s -// RUN: llvm-objdump -section-headers %t.o | FileCheck --check-prefix=MODE-SINGLE %s +// RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SINGLE %s // MODE-SINGLE: .dwo // Testing to ensure -enable-split-dwarf=split does not place .dwo sections into regular output object. // RUN: %clang_cc1 -debug-info-kind=limited -triple x86_64-unknown-linux \ // RUN: -enable-split-dwarf=split -split-dwarf-file %t.o -emit-obj -o %t.o %s -// RUN: llvm-objdump -section-headers %t.o | FileCheck --check-prefix=MODE-SPLIT %s +// RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=MODE-SPLIT %s // MODE-SPLIT-NOT: .dwo int main (void) { diff --git a/clang/test/CodeGen/thinlto-split-dwarf.c b/clang/test/CodeGen/thinlto-split-dwarf.c index 2a0d82b34c0..4391345ad45 100644 --- a/clang/test/CodeGen/thinlto-split-dwarf.c +++ b/clang/test/CodeGen/thinlto-split-dwarf.c @@ -12,8 +12,8 @@ // RUN: -emit-obj -fthinlto-index=%t.o.thinlto.bc \ // RUN: -o %t.native.o -split-dwarf-file %t.native.dwo -x ir %t.o -// RUN: llvm-readobj -sections %t.native.o | FileCheck --check-prefix=O %s -// RUN: llvm-readobj -sections %t.native.dwo | FileCheck --check-prefix=DWO %s +// RUN: llvm-readobj -S %t.native.o | FileCheck --check-prefix=O %s +// RUN: llvm-readobj -S %t.native.dwo | FileCheck --check-prefix=DWO %s // O-NOT: .dwo // DWO: .dwo diff --git a/clang/test/Driver/as-dwarf-cie.s b/clang/test/Driver/as-dwarf-cie.s index 73d987afd42..1ffb23cb05d 100644 --- a/clang/test/Driver/as-dwarf-cie.s +++ b/clang/test/Driver/as-dwarf-cie.s @@ -1,7 +1,7 @@ # REQUIRES: x86-registered-target # Test that there is a sane default CIE version. # RUN: %clang -cc1as -triple i386-apple-darwin -filetype obj %s -o %t -# RUN: llvm-objdump -dwarf=frames %t | FileCheck %s +# RUN: llvm-objdump --dwarf=frames %t | FileCheck %s # CHECK: .debug_frame contents: # CHECK: CIE # CHECK: Version: 1 diff --git a/clang/test/Driver/embed-bitcode.s b/clang/test/Driver/embed-bitcode.s index 71a3e9c2fb1..52928c8d205 100644 --- a/clang/test/Driver/embed-bitcode.s +++ b/clang/test/Driver/embed-bitcode.s @@ -7,6 +7,6 @@ // CHECK-AS-MARKER: -fembed-bitcode=marker // RUN: %clang -c -target armv7-apple-ios10 %s -fembed-bitcode -o %t.o -// RUN: llvm-readobj -section-headers %t.o | FileCheck --check-prefix=CHECK-SECTION %s +// RUN: llvm-readobj -S %t.o | FileCheck --check-prefix=CHECK-SECTION %s // CHECK-SECTION: Name: __asm // CHECK-SECTION-NEXT: Segment: __LLVM diff --git a/clang/test/Modules/pch_container.m b/clang/test/Modules/pch_container.m index 95ef3edcd66..541c4b7e276 100644 --- a/clang/test/Modules/pch_container.m +++ b/clang/test/Modules/pch_container.m @@ -7,7 +7,7 @@ // RUN: %clang_cc1 -triple=x86_64-apple-darwin -fmodules -fmodule-format=raw -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t-raw -F %S/Inputs %s -// RUN: llvm-objdump -section-headers %t-MachO/DependsOnModule.pcm %t-ELF/DependsOnModule.pcm %t-COFF/DependsOnModule.pcm | FileCheck %s +// RUN: llvm-objdump --section-headers %t-MachO/DependsOnModule.pcm %t-ELF/DependsOnModule.pcm %t-COFF/DependsOnModule.pcm | FileCheck %s // CHECK: file format Mach-O 64-bit x86-64 // CHECK: __clangast {{[0-9a-f]+}} {{[0-9a-f]+}} DATA // CHECK: file format ELF64-x86-64 @@ -15,6 +15,6 @@ // CHECK: file format COFF-x86-64 // CHECK: clangast {{[0-9a-f]+}} {{[0-9a-f]+}} -// RUN: not llvm-objdump -section-headers %t-raw/DependsOnModule.pcm +// RUN: not llvm-objdump --section-headers %t-raw/DependsOnModule.pcm // RUN: %clang_cc1 -split-dwarf-file t-split.dwo -triple=x86_64-linux-elf -fmodules -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t-ELF_SPLIT -F %S/Inputs %s -o %t-split.o |

