diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-26 06:10:32 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-26 06:10:32 +0000 |
commit | 2c6f4fea82d16e07f63f2bef5e53af984e74218c (patch) | |
tree | 2cf92cd6c9a1e747caa5d573bea6780a74cdca58 /llvm/lib/Support | |
parent | d4aca65172c884faff465d56ea90d244c432d383 (diff) | |
download | bcm5719-llvm-2c6f4fea82d16e07f63f2bef5e53af984e74218c.tar.gz bcm5719-llvm-2c6f4fea82d16e07f63f2bef5e53af984e74218c.zip |
Remove calls to Path in #ifdefs that don't seem to be used in any of the bots :-(
llvm-svn: 184920
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/Unix/PathV2.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/Unix/PathV2.inc b/llvm/lib/Support/Unix/PathV2.inc index 588f9e8dd1a..29a89b03d07 100644 --- a/llvm/lib/Support/Unix/PathV2.inc +++ b/llvm/lib/Support/Unix/PathV2.inc @@ -188,7 +188,7 @@ std::string getMainExecutable(const char *argv0, void *MainAddr) { char exe_path[PATH_MAX]; if (getprogpath(exe_path, argv0) != NULL) - return Path(exe_path); + return exe_path; #elif defined(__linux__) || defined(__CYGWIN__) char exe_path[MAXPATHLEN]; StringRef aPath("/proc/self/exe"); @@ -207,13 +207,13 @@ std::string getMainExecutable(const char *argv0, void *MainAddr) { Dl_info DLInfo; int err = dladdr(MainAddr, &DLInfo); if (err == 0) - return Path(); + return ""; // If the filename is a symlink, we need to resolve and return the location of // the actual executable. char link_path[MAXPATHLEN]; if (realpath(DLInfo.dli_fname, link_path)) - return Path(link_path); + return link_path; #else #error GetMainExecutable is not implemented on this host yet. #endif |