From a3632edb1592c20e3e4ef28899a598e6e17ec3ed Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 16 Jul 2019 00:02:40 +0000 Subject: [PATCH] Temporarily revert "add -fthinlto-index= option to clang-cl" This is causing testsuite failures on (at least) darwin release+asserts. This reverts commit r366146. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366157 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Driver/Options.td | 2 +- test/Driver/cl-thinlto-backend.c | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 test/Driver/cl-thinlto-backend.c diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index dfd27fab79..957483c318 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -1270,7 +1270,7 @@ def flto_jobs_EQ : Joined<["-"], "flto-jobs=">, "of 0 means the number of threads will be derived from " "the number of CPUs detected)">; def fthinlto_index_EQ : Joined<["-"], "fthinlto-index=">, - Flags<[CoreOption, CC1Option]>, Group, + Flags<[CC1Option]>, Group, HelpText<"Perform ThinLTO importing using provided function summary index">; def fmacro_backtrace_limit_EQ : Joined<["-"], "fmacro-backtrace-limit=">, Group, Flags<[DriverOption, CoreOption]>; diff --git a/test/Driver/cl-thinlto-backend.c b/test/Driver/cl-thinlto-backend.c deleted file mode 100644 index a948c4ea33..0000000000 --- a/test/Driver/cl-thinlto-backend.c +++ /dev/null @@ -1,9 +0,0 @@ -// RUN: %clang_cl -c -flto=thin -Fo%t.obj %s -// RUN: llvm-lto2 run -thinlto-distributed-indexes -o %t.exe %t.obj - -// -fthinlto_index should be passed to cc1 -// RUN: %clang_cl -### -c -fthinlto-index=%t.thinlto.bc -Fo%t1.obj \ -// RUN: %t.obj 2>&1 | FileCheck %s - -// CHECK: -fthinlto-index= -// CHECK: "-x" "ir" -- 2.50.1