[all-commits] [llvm/llvm-project] cdbf6b: [HIP] Use argv[0] as the default choice for the Ex...

Artem Belevich via All-commits all-commits at lists.llvm.org
Tue Nov 3 10:32:58 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cdbf6bfdc7d15fc6a078c7773f142042a11d2c1b
      https://github.com/llvm/llvm-project/commit/cdbf6bfdc7d15fc6a078c7773f142042a11d2c1b
  Author: Artem Belevich <tra at google.com>
  Date:   2020-11-03 (Tue, 03 Nov 2020)

  Changed paths:
    M clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp

  Log Message:
  -----------
  [HIP] Use argv[0] as the default choice for the Executable name.

The path produced by getMainExecutable() may not be the right one when the files are installed in
a symlinked tree and when the real location of llvm-objdump is in a different directory.

Given that clang-offload-bundler is invoked by clang, the driver already does the job figuring out
the right path (e.g. it pays attention to -no-canonical-prefixes).
Offload bundler should use it, instead of trying to figure out the path on its
own.

Differential Revision: https://reviews.llvm.org/D90436




More information about the All-commits mailing list