summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-09-07 18:26:49 +0000
committerDan Gohman <gohman@apple.com>2010-09-07 18:26:49 +0000
commitd51b43181e4dbeed05f815f1e2da03804c10e509 (patch)
tree67c8160f1438437b9a01c83b06e9fe6625839827 /llvm/lib/System
parentc9b3316fea8e0a9f657f39357c6be66c86d90eff (diff)
downloadbcm5719-llvm-d51b43181e4dbeed05f815f1e2da03804c10e509.tar.gz
bcm5719-llvm-d51b43181e4dbeed05f815f1e2da03804c10e509.zip
Issue a #error if the host doesn't have an implementation for
GetMainExecutable yet. llvm-svn: 113240
Diffstat (limited to 'llvm/lib/System')
-rw-r--r--llvm/lib/System/Unix/Path.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/System/Unix/Path.inc b/llvm/lib/System/Unix/Path.inc
index 47e4d1ac3c6..184da1e27ac 100644
--- a/llvm/lib/System/Unix/Path.inc
+++ b/llvm/lib/System/Unix/Path.inc
@@ -372,6 +372,8 @@ Path Path::GetMainExecutable(const char *argv0, void *MainAddr) {
char link_path[MAXPATHLEN];
if (realpath(DLInfo.dli_fname, link_path))
return Path(std::string(link_path));
+#else
+#error GetMainExecutable is not implemented on this host yet.
#endif
return Path();
}
OpenPOWER on IntegriCloud