Skip to content

Commit e693e13

Browse files
authored
Merge pull request #5006 from gottesmm/use_just_build_llvm_dwarfdump
2 parents 82cc5ca + dfa39c1 commit e693e13

File tree

7 files changed

+9
-6
lines changed

7 files changed

+9
-6
lines changed

test/DebugInfo/Imports.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// RUN: %target-swift-frontend -emit-ir -module-name Foo %s -I %t -g -o - | %FileCheck %s
55
// RUN: %target-swift-frontend -c -module-name Foo %s -I %t -g -o %t.o
6-
// RUN: llvm-dwarfdump %t.o | %FileCheck --check-prefix=DWARF %s
6+
// RUN: %llvm-dwarfdump %t.o | %FileCheck --check-prefix=DWARF %s
77

88
// CHECK-DAG: ![[FOOMODULE:[0-9]+]] = !DIModule({{.*}}, name: "Foo", includePath: "{{.*}}test{{.*}}DebugInfo{{.*}}"
99
// CHECK-DAG: !DIImportedEntity(tag: DW_TAG_imported_module, scope: ![[THISFILE:[0-9]+]], entity: ![[FOOMODULE]]

test/DebugInfo/iteration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func count() {
2929
count()
3030

3131
// End-to-end test:
32-
// RUN: llc %t.ll -filetype=obj -o - | llvm-dwarfdump - | %FileCheck %s --check-prefix DWARF-CHECK
32+
// RUN: llc %t.ll -filetype=obj -o - | %llvm-dwarfdump - | %FileCheck %s --check-prefix DWARF-CHECK
3333
// DWARF-CHECK: DW_TAG_variable
3434
// DWARF-CHECK: DW_AT_name {{.*}} "letter"
3535
//

test/DebugInfo/letstring.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class AppDelegate {
2525

2626
// End-to-end test:
2727
// RUN: llc %t.ll -filetype=obj -o %t.o
28-
// RUN: llvm-dwarfdump %t.o | %FileCheck %s --check-prefix DWARF-CHECK
28+
// RUN: %llvm-dwarfdump %t.o | %FileCheck %s --check-prefix DWARF-CHECK
2929
// DWARF-CHECK: DW_AT_name {{.*}} "f"
3030
//
3131
// DWARF-CHECK: DW_TAG_formal_parameter

test/DebugInfo/local-vars.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: %gyb %s -o %t.swift
66
// RUN: %target-swift-frontend %t.swift -g -emit-ir -o - | %FileCheck %t.swift
77
// RUN: %target-swift-frontend %t.swift -g -c -o %t.o
8-
// RUN: llvm-dwarfdump --debug-dump=info %t.o \
8+
// RUN: %llvm-dwarfdump --debug-dump=info %t.o \
99
// RUN: | %FileCheck %t.swift --check-prefix=DWARF
1010
// RUN: %target-swift-frontend %t.swift -O -g -emit-ir -o - \
1111
// RUN: | %FileCheck %t.swift --check-prefix=OPTZNS

test/DebugInfo/test-foundation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %FileCheck %s --check-prefix IMPORT-CHECK < %t.ll
33
// RUN: %FileCheck %s --check-prefix LOC-CHECK < %t.ll
44
// RUN: llc %t.ll -filetype=obj -o %t.o
5-
// RUN: llvm-dwarfdump %t.o | %FileCheck %s --check-prefix DWARF-CHECK
5+
// RUN: %llvm-dwarfdump %t.o | %FileCheck %s --check-prefix DWARF-CHECK
66
// DISABLED <rdar://problem/28232630>: dwarfdump --verify %t.o
77

88
// REQUIRES: OS=macosx

test/DebugInfo/typearg.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Foo<Bar> {
3535

3636
// Verify that the backend doesn't elide the debug intrinsics.
3737
// RUN: %target-swift-frontend %s -c -g -o %t.o
38-
// RUN: llvm-dwarfdump %t.o | %FileCheck %s --check-prefix=CHECK-LLVM
38+
// RUN: %llvm-dwarfdump %t.o | %FileCheck %s --check-prefix=CHECK-LLVM
3939
// CHECK-LLVM-DAG: .debug_str[{{.*}}] = "x"
4040
// CHECK-LLVM-DAG: .debug_str[{{.*}}] = "$swift.type.T"
4141
// CHECK- FIXME -LLVM-DAG: .debug_str[{{.*}}] = "$swift.type.Bar"

test/lit.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ config.swift_llvm_opt = inferSwiftBinary('swift-llvm-opt')
286286
config.llvm_profdata = inferSwiftBinary('llvm-profdata')
287287
config.llvm_cov = inferSwiftBinary('llvm-cov')
288288
config.filecheck = inferSwiftBinary('FileCheck')
289+
config.llvm_dwarfdump = inferSwiftBinary('llvm-dwarfdump')
289290

290291
config.swift_utils = os.path.join(config.swift_src_root, 'utils')
291292
config.line_directive = os.path.join(config.swift_utils, 'line-directive')
@@ -350,6 +351,7 @@ config.substitutions.append( ('%swift-ide-test', "%r %s %s" % (config.swift_ide_
350351
config.substitutions.append( ('%swift-format', config.swift_format) )
351352
config.substitutions.append( ('%llvm-link', config.llvm_link) )
352353
config.substitutions.append( ('%swift-llvm-opt', config.swift_llvm_opt) )
354+
config.substitutions.append( ('%llvm-dwarfdump', config.llvm_dwarfdump) )
353355

354356
# This must come after all substitutions containing "%swift".
355357
config.substitutions.append(
@@ -417,6 +419,7 @@ disallow('lldb-moduleimport-test')
417419
disallow('swift-ide-test')
418420
disallow('clang')
419421
disallow('FileCheck')
422+
disallow('llvm-dwarfdump')
420423

421424
config.substitutions.insert(0,
422425
('%p',

0 commit comments

Comments
 (0)