[llvm] [llvm-objdump] Add --substitute-path and --source-dir for --source (PR #201096)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 24 02:18:15 PDT 2026


================
@@ -72,7 +123,12 @@
 
 ;; Empty <to> without --source-dir: relative path is not resolved; warn once, no crash.
 ; RUN: llvm-objdump --no-print-imm-hex -d --source --substitute-path /wrong "" %t.o 2>&1 | \
-; RUN:   FileCheck %s --check-prefix=SOURCE-EMPTY-TO -DFILE=%t.o
+; RUN:   FileCheck %s --check-prefix=SOURCE-EMPTY-TO -DFILE=%t.o \
+; RUN:     --implicit-check-not="; int foo() {"
----------------
jh7370 wrote:

This might be a bit brittle. I'd suggest simplifying slightly to just check for `foo()`.

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


More information about the llvm-commits mailing list