[llvm] [llvm-driver] Add driver aliases for c++filt and gcov-tool (PR #92803)

Jordan Rupprecht via llvm-commits llvm-commits at lists.llvm.org
Tue May 21 09:37:37 PDT 2024


================
@@ -39,8 +39,10 @@ _EXTRA_ALIASES = {
     "clang": ["clang++", "clang-cl", "clang-cpp"],
     "lld": ["ld", "lld-link", "ld.lld", "ld64.lld", "wasm-ld"],
     "llvm-ar": ["ranlib", "lib", "dlltool"],
+    "llvm-cxxfilt": ["c++filt"],
     "llvm-objcopy": ["bitcode-strip", "install-name-tool", "strip"],
     "llvm-objdump": ["otool"],
+    "llvm-profdata": ["gcov-tool"],
----------------
rupprecht wrote:

I'm not entirely convinced, but the problem is small enough in scope that I can update callers to call if `llvm-profdata` instead. I reverted this part, now the patch is just handling `c++filt`.

> gcov-tool and llvm-profdata are so different. If llvm-profdata symlinked to gcov-tool works, it indicates that gcov-tool is just needed by the build system but isn't actually used.

It seems like even if they generally aren't compatible, the most popular use case is `$tool merge -o ...`, for which both `llvm-profdata merge -o ...` and `gcov-tool merge -o ...` work, so it ends up appearing compatible.

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


More information about the llvm-commits mailing list