| 1 |
// -flto=thin causes a switch to llvm-bc object files. |
| 2 |
// RUN: %clang -ccc-print-phases -c %s -flto=thin 2> %t |
| 3 |
// RUN: FileCheck -check-prefix=CHECK-COMPILE-ACTIONS < %t %s |
| 4 |
// |
| 5 |
// CHECK-COMPILE-ACTIONS: 2: compiler, {1}, ir |
| 6 |
// CHECK-COMPILE-ACTIONS: 3: backend, {2}, lto-bc |
| 7 |
|
| 8 |
// RUN: %clang -ccc-print-phases %if target={{.*-windows-msvc.*}} %{ -fuse-ld=lld %} -flto=thin %s 2> %t |
| 9 |
// RUN: FileCheck -check-prefix=CHECK-COMPILELINK-ACTIONS < %t %s |
| 10 |
// |
| 11 |
// CHECK-COMPILELINK-ACTIONS: 0: input, "{{.*}}thinlto.c", c |
| 12 |
// CHECK-COMPILELINK-ACTIONS: 1: preprocessor, {0}, cpp-output |
| 13 |
// CHECK-COMPILELINK-ACTIONS: 2: compiler, {1}, ir |
| 14 |
// CHECK-COMPILELINK-ACTIONS: 3: backend, {2}, lto-bc |
| 15 |
// CHECK-COMPILELINK-ACTIONS: 4: linker, {3}, image |