mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-30 20:46:06 +00:00

Summary: A necessary step to let build system caching work for its output. Reviewers: tejohnson, steven_wu Reviewed by: tejohnson Subscribers: mehdi_amini, inglorion, dexonsmith, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D69406
19 lines
892 B
C
19 lines
892 B
C
// REQUIRES: x86-registered-target
|
|
//
|
|
// RUN: %clang -flto=thin -fthin-link-bitcode=%t.bc -target x86_64-unknown-linux-gnu -### %s 2>&1 | FileCheck %s --check-prefix=LINKBC
|
|
//
|
|
// RUN: %clang_cc1 -o %t -flto=thin -fthin-link-bitcode=%t.nodebug -triple x86_64-unknown-linux-gnu -emit-llvm-bc -debug-info-kind=limited %s
|
|
// RUN: llvm-bcanalyzer -dump %t | FileCheck %s
|
|
// RUN: llvm-bcanalyzer -dump %t.nodebug | FileCheck %s --check-prefix=NO_DEBUG
|
|
// RUN: %clang_cc1 -o %t.newpm -flto=thin -fexperimental-new-pass-manager -fthin-link-bitcode=%t.newpm.nodebug -triple x86_64-unknown-linux-gnu -emit-llvm-bc -debug-info-kind=limited %s
|
|
// RUN: llvm-bcanalyzer -dump %t.newpm | FileCheck %s
|
|
// RUN: llvm-bcanalyzer -dump %t.newpm.nodebug | FileCheck %s --check-prefix=NO_DEBUG
|
|
int main (void) {
|
|
return 0;
|
|
}
|
|
|
|
// LINKBC: -fthin-link-bitcode=
|
|
|
|
// CHECK: COMPILE_UNIT
|
|
// NO_DEBUG-NOT: COMPILE_UNIT
|