Skip to content

Commit 8cd0668

Browse files
authored
Merge pull request #30434 from benlangmuir/long-opt
[test] Update uses of llvm-objdump to --long options
2 parents 4f84517 + 63963ab commit 8cd0668

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

test/ClangImporter/pch-bridging-header.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// Test the driver-automated version works by default
1414
// RUN: env TMPDIR=%t/tmp/ %target-swiftc_driver -typecheck -save-temps %s -import-objc-header %S/Inputs/sdk-bridging-header.h
1515
// RUN: ls %t/tmp/*.pch >/dev/null 2>&1
16-
// RUN: llvm-objdump -raw-clang-ast %t/tmp/*.pch | llvm-bcanalyzer -dump | %FileCheck %s
16+
// RUN: llvm-objdump --raw-clang-ast %t/tmp/*.pch | llvm-bcanalyzer -dump | %FileCheck %s
1717
// CHECK: ORIGINAL_FILE{{.*}}Inputs/sdk-bridging-header.h
1818

1919
// Test the driver-automated version deletes its PCH file when done
@@ -39,7 +39,7 @@
3939
// Test the driver-automated version using persistent PCH
4040
// RUN: %target-swiftc_driver -typecheck -save-temps %s -import-objc-header %S/Inputs/sdk-bridging-header.h -pch-output-dir %t/pch3
4141
// RUN: ls %t/pch3/*.pch >/dev/null 2>&1
42-
// RUN: llvm-objdump -raw-clang-ast %t/pch3/*.pch | llvm-bcanalyzer -dump | %FileCheck %s -check-prefix=PERSISTENT
42+
// RUN: llvm-objdump --raw-clang-ast %t/pch3/*.pch | llvm-bcanalyzer -dump | %FileCheck %s -check-prefix=PERSISTENT
4343
// PERSISTENT: ORIGINAL_FILE{{.*}}Inputs/sdk-bridging-header.h
4444

4545
// Test that -pch-disable-validation works in that it won't implicitely create a PCH

test/Frontend/embed-bitcode-tvos.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; REQUIRES: CODEGENERATOR=AArch64
22
; RUN: llvm-as %s -o %t.bc
33
; RUN: %swift -target arm64-apple-tvos9 -c -module-name someModule -embed-bitcode -disable-llvm-optzns -o %t2.o %t.bc -dump-clang-diagnostics 2> %t.diags.txt
4-
; RUN: llvm-objdump -macho -private-headers %t2.o | %FileCheck %s
4+
; RUN: llvm-objdump --macho --private-headers %t2.o | %FileCheck %s
55
; RUN: %FileCheck -check-prefix CHECK-IMPORTER %s < %t.diags.txt
66

77
target triple = "arm64-apple-tvos9.0"

test/Frontend/embed-bitcode.ll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
; serialized in the object file.
77

88
; RUN: %swiftc_driver_plain -frontend -target x86_64-apple-darwin10 -c -module-name someModule -embed-bitcode -disable-llvm-optzns -Xllvm -time-passes -o %t2.o %t.bc -dump-clang-diagnostics 2> %t.diags.txt
9-
; RUN: llvm-objdump -macho -section="__LLVM,__bitcode" %t2.o | %FileCheck %s
10-
; RUN: llvm-objdump -macho -section="__LLVM,__swift_cmdline" %t2.o | %FileCheck -check-prefix=CHECK-CMD %s
9+
; RUN: llvm-objdump --macho --section="__LLVM,__bitcode" %t2.o | %FileCheck %s
10+
; RUN: llvm-objdump --macho --section="__LLVM,__swift_cmdline" %t2.o | %FileCheck -check-prefix=CHECK-CMD %s
1111
; RUN: %FileCheck -check-prefix CHECK-COMPILER %s < %t.diags.txt
1212

1313
; RUN: %swiftc_driver_plain -frontend -O -target x86_64-apple-darwin10 -c -module-name someModule -embed-bitcode -disable-llvm-optzns -Xllvm -time-passes -o %t2-opt.o %t.bc -dump-clang-diagnostics -Xllvm -debug-pass=Structure 2> %t.diags-opt.txt
14-
; RUN: llvm-objdump -macho -section="__LLVM,__bitcode" %t2-opt.o | %FileCheck %s
15-
; RUN: llvm-objdump -macho -section="__LLVM,__swift_cmdline" %t2-opt.o | %FileCheck -check-prefix=CHECK-CMD-OPT %s
14+
; RUN: llvm-objdump --macho --section="__LLVM,__bitcode" %t2-opt.o | %FileCheck %s
15+
; RUN: llvm-objdump --macho --section="__LLVM,__swift_cmdline" %t2-opt.o | %FileCheck -check-prefix=CHECK-CMD-OPT %s
1616
; RUN: %FileCheck -check-prefix CHECK-COMPILER-OPT %s < %t.diags-opt.txt
1717

1818
; RUN: %swiftc_driver_plain -frontend -target x86_64-apple-darwin10 -c -module-name someModule -embed-bitcode-marker -o %t3.o %t.bc
19-
; RUN: llvm-objdump -macho -section="__LLVM,__bitcode" %t3.o | %FileCheck -check-prefix=MARKER %s
20-
; RUN: llvm-objdump -macho -section="__LLVM,__swift_cmdline" %t3.o | %FileCheck -check-prefix=MARKER-CMD %s
19+
; RUN: llvm-objdump --macho --section="__LLVM,__bitcode" %t3.o | %FileCheck -check-prefix=MARKER %s
20+
; RUN: llvm-objdump --macho --section="__LLVM,__swift_cmdline" %t3.o | %FileCheck -check-prefix=MARKER-CMD %s
2121

2222
target triple = "x86_64-apple-darwin10"
2323
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"

test/Frontend/embed-bitcode.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: CPU=x86_64
22
// RUN: %target-swift-frontend -c -module-name someModule -embed-bitcode-marker -o %t.o %s
3-
// RUN: llvm-objdump -macho -section="__LLVM,__bitcode" %t.o | %FileCheck -check-prefix=MARKER %s
4-
// RUN: llvm-objdump -macho -section="__LLVM,__swift_cmdline" %t.o | %FileCheck -check-prefix=MARKER-CMD %s
3+
// RUN: llvm-objdump --macho --section="__LLVM,__bitcode" %t.o | %FileCheck -check-prefix=MARKER %s
4+
// RUN: llvm-objdump --macho --section="__LLVM,__swift_cmdline" %t.o | %FileCheck -check-prefix=MARKER-CMD %s
55

66
// This file tests Mach-O file output, but Linux variants do not produce Mach-O
77
// files.

0 commit comments

Comments
 (0)