File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
// REQUIRES: OS=linux-gnu || OS=freebsd
2
2
// RUN: %empty-directory(%t)
3
3
// RUN: %target-build-swift -Xfrontend -function-sections -emit-module -emit-library -static -parse-stdlib %S/Inputs/FunctionSections.swift
4
- // RUN: %target-build-swift -Xlinker -- gc-sections -Xlinker -Map=%t/../../FunctionSections.map -I%t/../.. -L%t/../.. -lFunctionSections %S/Inputs/FunctionSectionsUse.swift
5
- // RUN: %FileCheck %s < %t/../../FunctionSections.map
4
+ // RUN: %target-build-swift -Xlinker -v -Xlinker -- gc-sections -Xlinker -Map=%t/../../FunctionSections.map -I%t/../.. -L%t/../.. -lFunctionSections %S/Inputs/FunctionSectionsUse.swift 2>&1 | sed 's/.*\(gold\|LLD\).*/\1/g' | tr "[:lower:]" "[:upper:]" > %t/../../Linker.txt
5
+ // RUN: %FileCheck --check-prefix $(cat %t/../../Linker.txt) %s < %t/../../FunctionSections.map
6
6
7
- // CHECK: Discarded input sections
8
- // CHECK: .text.$s16FunctionSections5func2yyF
9
- // CHECK: Memory map
10
- // CHECK: .text.$s16FunctionSections5func1yyF
7
+ // GOLD: Discarded input sections
8
+ // GOLD: .text.$s16FunctionSections5func2yyF
9
+ // GOLD: Memory map
10
+ // GOLD: .text.$s16FunctionSections5func1yyF
11
+
12
+ // LLD: .text.$s16FunctionSections5func1yyF
13
+ // LLD-NOT: .text.$s16FunctionSections5func2yyF
You can’t perform that action at this time.
0 commit comments