[llvm] [llvm-symbolizer] restore --[no-]use-symbol-table option (PR #71008)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 00:09:49 PST 2023


================
@@ -1,15 +1,26 @@
 # REQUIRES: x86-registered-target
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
-# RUN: llvm-addr2line --no-use-symbol-table -fe %t.o 0x1 | FileCheck %s
-# CHECK: foo
-# CHECK: relocatable.c
-# The above addr2line command prints "b" if --use-symbol-table
+# RUN: llvm-addr2line --no-use-symbol-table -f -e %t.o 0x1 | FileCheck %s --check-prefix=OFF
+# OFF: foo
+# OFF-NEXT: relocatable.c
 
-# Produced from the following program, compiled with clang -g -S
-# char a;
-# char b;
-# void foo() {}
+## Produced from the following program, compiled with clang -g -S
----------------
jh7370 wrote:

I'd move this comment to right before the ASM.

Also, missing trailing full stop.

https://github.com/llvm/llvm-project/pull/71008


More information about the llvm-commits mailing list