File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 55// Test the -profile-sample-use= flag using bogus data, to ensure it's actually
66// reaching LLVM in the expected way.
77
8- // RUN: %target-swift-frontend %t/program.swift -module-name test -emit-ir \
9- // RUN: -O -profile-sample-use=%t/profile.txt -o %t/has-data.ll
8+ // RUN: %target-swiftc_driver -v %t/program.swift -module-name test -emit-ir \
9+ // RUN: -O -profile-sample-use=%t/profile.txt -o %t/has-data.ll \
10+ // RUN: > %t/flags.txt
11+
12+ // RUN: %FileCheck %s --check-prefix CHECK-STDERR --input-file %t/flags.txt
13+ // CHECK-STDERR: -Xllvm -sample-profile-use-profi
1014
11- // RUN: %FileCheck %s < %t/has-data.ll
15+ // RUN: %FileCheck %s --input-file %t/has-data.ll
1216
1317// CHECK: define{{.*}} @"$s4test8anythingyyF"() #[[ATTRID:[0-9]+]]
1418// CHECK: attributes #[[ATTRID]] = {{.*}} "use-sample-profile"
You can’t perform that action at this time.
0 commit comments