HomePhabricator

[HIP] use GetProgramPath for executable discovery

Authored by DieGoldeneEnte on Jan 21 2020, 9:27 AM.

Description

[HIP] use GetProgramPath for executable discovery

This change replaces the manual building of executable paths
using llvm::sys::path::append with GetProgramPath.
This enables adding other paths in case executables reside
in different directories and makes the code easier to read.

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

Details