From 445f6f1373429fb2c86ead77ec2ff64f17948899 Mon Sep 17 00:00:00 2001 From: Maksim Panchenko Date: Mon, 20 Nov 2023 10:24:34 -0800 Subject: [PATCH] [BOLT][TEST] Remove LTO flag from a test (#72896) The LTO flag is not needed for the test to work properly. However, it may not build on a system where compiler and linker versions don't match one another. Remove the LTO flag. --- bolt/test/{lsda.cpp => lsda-section-name.cpp} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename bolt/test/{lsda.cpp => lsda-section-name.cpp} (89%) diff --git a/bolt/test/lsda.cpp b/bolt/test/lsda-section-name.cpp similarity index 89% rename from bolt/test/lsda.cpp rename to bolt/test/lsda-section-name.cpp index b7905a58b532da..41fb1766582191 100644 --- a/bolt/test/lsda.cpp +++ b/bolt/test/lsda-section-name.cpp @@ -1,8 +1,8 @@ // This test check that LSDA section named by .gcc_except_table.main is // disassembled by BOLT. -// RUN: %clang++ %cxxflags -O3 -flto=thin -no-pie -c %s -o %t.o -// RUN: %clang++ %cxxflags -flto=thin -no-pie -fuse-ld=lld %t.o -o %t.exe \ +// RUN: %clang++ %cxxflags -O3 -no-pie -c %s -o %t.o +// RUN: %clang++ %cxxflags -no-pie -fuse-ld=lld %t.o -o %t.exe \ // RUN: -Wl,-q -Wl,--script=%S/Inputs/lsda.ldscript // RUN: llvm-readelf -SW %t.exe | FileCheck %s // RUN: llvm-bolt %t.exe -o %t.bolt