From: Teresa Johnson Date: Fri, 31 Mar 2017 03:49:52 +0000 (+0000) Subject: Add target-cpu X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a039adfbda9b41f775ab553dc58bd88395267516;p=clang Add target-cpu Sigh, another follow-on fix needed for test in r299152 causing bot failures. We also need the target-cpu for the ThinLTO BE clang invocation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@299178 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/function-sections.c b/test/CodeGen/function-sections.c index fe131bba1b..cef24be773 100644 --- a/test/CodeGen/function-sections.c +++ b/test/CodeGen/function-sections.c @@ -12,8 +12,8 @@ // Try again through a clang invocation of the ThinLTO backend. // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -O2 %s -flto=thin -emit-llvm-bc -o %t.o // RUN: llvm-lto -thinlto -o %t %t.o -// RUN: %clang -Xclang -triple -Xclang x86_64-pc-linux-gnu -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -S -ffunction-sections -o - | FileCheck %s --check-prefix=FUNC_SECT -// RUN: %clang -Xclang -triple -Xclang x86_64-pc-linux-gnu -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -S -fdata-sections -o - | FileCheck %s --check-prefix=DATA_SECT +// RUN: %clang -Xclang -triple -Xclang x86_64-pc-linux-gnu -Xclang -target-cpu -Xclang x86-64 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -S -ffunction-sections -o - | FileCheck %s --check-prefix=FUNC_SECT +// RUN: %clang -Xclang -triple -Xclang x86_64-pc-linux-gnu -Xclang -target-cpu -Xclang x86-64 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -S -fdata-sections -o - | FileCheck %s --check-prefix=DATA_SECT const int hello = 123; void world() {}