Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bolt
diff options
context:
space:
mode:
authorAmir Ayupov <aaupov@fb.com>2022-05-11 13:37:09 +0300
committerAmir Ayupov <aaupov@fb.com>2022-05-11 13:38:26 +0300
commit4a58eb9e4e5282df95deff243f4141b35909710c (patch)
tree7207a87ab4b57b2897b9c2e3e24cba1e6c472968 /bolt
parent635b7522112a69a3b50686077e54e06465fcd801 (diff)
[BOLT][TEST] Remove -gdwarf-4 override from %cflags
As BOLT support for monolithic and split DWARF5 is added, remove DWARF version override for BOLT tests. Reviewed By: ayermolo Differential Revision: https://reviews.llvm.org/D125366
Diffstat (limited to 'bolt')
-rw-r--r--bolt/test/AArch64/asm-func-debug.test2
-rw-r--r--bolt/test/X86/asm-func-debug.test2
-rw-r--r--bolt/test/lit.cfg.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/bolt/test/AArch64/asm-func-debug.test b/bolt/test/AArch64/asm-func-debug.test
index 2bbe66857958..7c679ed8ce9c 100644
--- a/bolt/test/AArch64/asm-func-debug.test
+++ b/bolt/test/AArch64/asm-func-debug.test
@@ -3,7 +3,7 @@
#
# The input test case foo() contains nops that we remove.
-RUN: %clang %cflags -no-pie -g %p/../Inputs/asm_foo.s %p/../Inputs/asm_main.c -o %t.exe
+RUN: %clang %cflags -no-pie -gdwarf-4 %p/../Inputs/asm_foo.s %p/../Inputs/asm_main.c -o %t.exe
RUN: llvm-bolt %t.exe -o %t -update-debug-sections
RUN: llvm-dwarfdump -all %t | FileCheck %s
diff --git a/bolt/test/X86/asm-func-debug.test b/bolt/test/X86/asm-func-debug.test
index 4883d688c1ed..a8bad6e0c250 100644
--- a/bolt/test/X86/asm-func-debug.test
+++ b/bolt/test/X86/asm-func-debug.test
@@ -3,7 +3,7 @@
#
# The input test case foo() contains nops that we remove.
-RUN: %clang -g %cflags -no-pie %p/../Inputs/asm_foo.s %p/../Inputs/asm_main.c -o %t.exe
+RUN: %clang -gdwarf-4 %cflags -no-pie %p/../Inputs/asm_foo.s %p/../Inputs/asm_main.c -o %t.exe
RUN: llvm-bolt %t.exe -o %t -update-debug-sections
RUN: llvm-dwarfdump -all %t | FileCheck %s
diff --git a/bolt/test/lit.cfg.py b/bolt/test/lit.cfg.py
index 3442d1f57731..78077921fcd6 100644
--- a/bolt/test/lit.cfg.py
+++ b/bolt/test/lit.cfg.py
@@ -66,8 +66,8 @@ ld_lld = llvm_config.use_llvm_tool('ld.lld', required=True, search_env='LD_LLD')
llvm_config.config.available_features.add('ld.lld')
llvm_config.add_tool_substitutions([ToolSubst(r'ld\.lld', command=ld_lld)])
-config.substitutions.append(('%cflags', '-gdwarf-4'))
-config.substitutions.append(('%cxxflags', '-gdwarf-4'))
+config.substitutions.append(('%cflags', ''))
+config.substitutions.append(('%cxxflags', ''))
link_fdata_cmd = os.path.join(config.test_source_root, 'link_fdata.py')