brintos

brintos / llvm-project-archived public Read only

0
0
Text · 729 B · 0642452 Raw
16 lines · c
1// -flto=thin causes a switch to llvm-bc object files.2// RUN: %clang -ccc-print-phases -c %s -flto=thin 2> %t3// RUN: FileCheck -check-prefix=CHECK-COMPILE-ACTIONS < %t %s4//5// CHECK-COMPILE-ACTIONS: 2: compiler, {1}, ir6// CHECK-COMPILE-ACTIONS: 3: backend, {2}, lto-bc7 8// RUN: %clang -ccc-print-phases %if target={{.*-windows-msvc.*}} %{ -fuse-ld=lld %} -flto=thin %s 2> %t9// RUN: FileCheck -check-prefix=CHECK-COMPILELINK-ACTIONS < %t %s10//11// CHECK-COMPILELINK-ACTIONS: 0: input, "{{.*}}thinlto.c", c12// CHECK-COMPILELINK-ACTIONS: 1: preprocessor, {0}, cpp-output13// CHECK-COMPILELINK-ACTIONS: 2: compiler, {1}, ir14// CHECK-COMPILELINK-ACTIONS: 3: backend, {2}, lto-bc15// CHECK-COMPILELINK-ACTIONS: 4: linker, {3}, image16