X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FSupport%2FSystemUtils.h;h=399aee51eb7b0ccc1f43fce8dad52f1e16d254d2;hb=2fa8af224ea026f9432e833fd6f42a216423a010;hp=91fcfed02887306f2e4573443e8379db8fe10875;hpb=345b344e64ae3e0b595e660a7e0c1833ead42e18;p=oota-llvm.git diff --git a/include/llvm/Support/SystemUtils.h b/include/llvm/Support/SystemUtils.h index 91fcfed0288..399aee51eb7 100644 --- a/include/llvm/Support/SystemUtils.h +++ b/include/llvm/Support/SystemUtils.h @@ -30,13 +30,14 @@ bool CheckBitcodeOutputToConsole( bool print_warning = true ///< Control whether warnings are printed ); -/// FindExecutable - Find a named executable, given the value of argv[0] of the -/// program being executed and the address of main itself. This allows us to -/// find another LLVM tool if it is built in the same directory. An empty string -/// is returned on error. +/// PrependMainExecutablePath - Prepend the path to the program being executed +/// to \p ExeName, given the value of argv[0] and the address of main() +/// itself. This allows us to find another LLVM tool if it is built in the same +/// directory. An empty string is returned on error; note that this function +/// just mainpulates the path and doesn't check for executability. /// @brief Find a named executable. -sys::Path FindExecutable(const std::string &ExeName, - const char *Argv0, void *MainAddr); +sys::Path PrependMainExecutablePath(const std::string &ExeName, + const char *Argv0, void *MainAddr); } // End llvm namespace