[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 3 00:51:34 PDT 2026
================
@@ -246,6 +246,20 @@ def : Flag<["-"], "w">, Alias<wide>;
defm prefix : Eq<"prefix", "Add prefix to absolute paths">,
MetaVarName<"prefix">;
+defm source_dir :
+ Eq<"source-dir",
+ "Add a directory to the front of the source search path when looking up "
+ "source files. Multiple directories may be given in one argument "
+ "separated by ':' (';' on Windows)">,
+ MetaVarName<"<dir>">;
+def : Separate<["-"], "source-dir">, Alias<source_dir>;
+
+def substitute_path : MultiArg<["--"], "substitute-path", 2>,
+ MetaVarName<"<from> <to>">,
+ HelpText<"Replace <from> with <to> at the start of the directory part of "
+ "source file paths when looking up sources. The rule is applied "
+ "only if <from> ends at a directory separator in the path. May be "
+ "specified multiple times.">;
----------------
jh7370 wrote:
No "." at end of help text.
https://github.com/llvm/llvm-project/pull/201096
More information about the llvm-commits
mailing list