[clang] [llvm] [PS4/PS5][Driver][DWARF] Always emit .debug_aranges for SCE tuning (PR #100160)
Paul T Robinson via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 10:11:24 PDT 2024
================
@@ -0,0 +1,33 @@
+; This checks that .debug_aranges is always generated for the SCE debugger
+; tuning.
+
+; RUN: llc -mtriple=x86_64 -debugger-tune=sce -filetype=obj %s -o %t
+; RUN: llvm-dwarfdump -debug-aranges %t | FileCheck %s
+
+; CHECK: .debug_aranges contents:
+; CHECK-NEXT: Address Range Header:
+; CHECK-SAME: length = 0x0000002c,
+
+; IR generated and reduced from:
+; $ cat foo.c
+; int foo;
+; $ clang -g -S -emit-llvm foo.c -o foo.ll
+
+target triple = "x86_64-unknown-linux-gnu"
----------------
pogo59 wrote:
This is redundant with the explicit triple on the llc command line.
https://github.com/llvm/llvm-project/pull/100160
More information about the llvm-commits
mailing list