diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CodeGen/emit-summary-index.c | 17 | ||||
-rw-r--r-- | clang/test/Misc/thinlto.c | 4 |
2 files changed, 4 insertions, 17 deletions
diff --git a/clang/test/CodeGen/emit-summary-index.c b/clang/test/CodeGen/emit-summary-index.c deleted file mode 100644 index 61264102068..00000000000 --- a/clang/test/CodeGen/emit-summary-index.c +++ /dev/null @@ -1,17 +0,0 @@ -// ; Check that the -flto=thin option emits a ThinLTO summary -// RUN: %clang_cc1 -flto=thin -emit-llvm-bc < %s | llvm-bcanalyzer -dump | FileCheck %s -// CHECK: <GLOBALVAL_SUMMARY_BLOCK -// -// ; Check that we do not emit a summary for regular LTO on Apple platforms -// RUN: %clang_cc1 -flto -triple x86_64-apple-darwin -emit-llvm-bc < %s | llvm-bcanalyzer -dump | FileCheck --check-prefix=LTO %s -// LTO-NOT: GLOBALVAL_SUMMARY_BLOCK -// -// ; Check that we emit a summary for regular LTO by default elsewhere -// RUN: %clang_cc1 -flto -triple x86_64-pc-linux-gnu -emit-llvm-bc < %s | llvm-bcanalyzer -dump | FileCheck --check-prefix=LTOINDEX %s -// LTOINDEX: <FULL_LTO_GLOBALVAL_SUMMARY_BLOCK -// -// ; Simulate -save-temps and check that it works (!"ThinLTO" module flag not added multiple times) -// RUN: %clang_cc1 -flto -triple x86_64-pc-linux-gnu -emit-llvm-bc -disable-llvm-passes < %s -o %t.bc -// RUN: %clang_cc1 -flto -triple x86_64-pc-linux-gnu -emit-llvm-bc -x ir < %t.bc | llvm-bcanalyzer -dump | FileCheck --check-prefix=LTOINDEX %s - -int main() {} diff --git a/clang/test/Misc/thinlto.c b/clang/test/Misc/thinlto.c new file mode 100644 index 00000000000..ec0f03f5a2a --- /dev/null +++ b/clang/test/Misc/thinlto.c @@ -0,0 +1,4 @@ +// RUN: %clang_cc1 -flto=thin -emit-llvm-bc < %s | llvm-bcanalyzer -dump | FileCheck %s +// ; Check that the -flto=thin option emits a summary +// CHECK: <GLOBALVAL_SUMMARY_BLOCK +int main() {} |