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

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 8 02:09:44 PDT 2026


================
@@ -49,19 +49,46 @@
 ; RUN:   --substitute-path /wron /nowhere \
 ; RUN:   --substitute-path /wrong %/p %t.o | \
 ; RUN:   FileCheck %s --check-prefix=SOURCE
+
+; Empty <to> strips the matched prefix (GDB allows this); use --source-dir to
+; resolve the resulting relative path.
+; RUN: echo '--substitute-path' > %t-empty-to.rsp
----------------
jh7370 wrote:

Same comment as below: I don't think the use of the response file should be necessary.

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


More information about the llvm-commits mailing list