[llvm] r184920 - Remove calls to Path in #ifdefs that don't seem to be used in any of the bots :-(
Rafael Espindola
rafael.espindola at gmail.com
Tue Jun 25 23:10:32 PDT 2013
Author: rafael
Date: Wed Jun 26 01:10:32 2013
New Revision: 184920
URL: http://llvm.org/viewvc/llvm-project?rev=184920&view=rev
Log:
Remove calls to Path in #ifdefs that don't seem to be used in any of the bots :-(
Modified:
llvm/trunk/lib/Support/Unix/PathV2.inc
Modified: llvm/trunk/lib/Support/Unix/PathV2.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/PathV2.inc?rev=184920&r1=184919&r2=184920&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/PathV2.inc (original)
+++ llvm/trunk/lib/Support/Unix/PathV2.inc Wed Jun 26 01:10:32 2013
@@ -188,7 +188,7 @@ std::string getMainExecutable(const char
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
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
More information about the llvm-commits
mailing list