[PATCH] D125366: [BOLT][TEST] Remove -gdwarf-4 override
Amir Ayupov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 11 03:14:18 PDT 2022
Amir updated this revision to Diff 428606.
Amir added a comment.
Keep override in {X86,AArch64}/asm-func-debug.test
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125366/new/
https://reviews.llvm.org/D125366
Files:
bolt/test/AArch64/asm-func-debug.test
bolt/test/X86/asm-func-debug.test
bolt/test/lit.cfg.py
Index: bolt/test/lit.cfg.py
===================================================================
--- bolt/test/lit.cfg.py
+++ bolt/test/lit.cfg.py
@@ -66,8 +66,8 @@
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')
Index: bolt/test/X86/asm-func-debug.test
===================================================================
--- bolt/test/X86/asm-func-debug.test
+++ 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
Index: bolt/test/AArch64/asm-func-debug.test
===================================================================
--- bolt/test/AArch64/asm-func-debug.test
+++ 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125366.428606.patch
Type: text/x-patch
Size: 1687 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220511/baa82012/attachment.bin>
More information about the llvm-commits
mailing list