summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2011-09-20 22:05:56 +0000
committerBob Wilson <bob.wilson@apple.com>2011-09-20 22:05:56 +0000
commit49621cb209d35490b2a03cc26b010bbeedaa7dbd (patch)
treebbd79d982f1c4f1d1530367b69f274ab05f6f99a /llvm/lib/Support/Unix
parent3e42bc55db0c3ffba5ee7085529944934be2993d (diff)
downloadbcm5719-llvm-49621cb209d35490b2a03cc26b010bbeedaa7dbd.tar.gz
bcm5719-llvm-49621cb209d35490b2a03cc26b010bbeedaa7dbd.zip
Remove the hack to check UNAME_RELEASE when identifying the Darwin version.
This was only needed to locate llvm-gcc's installation directory when clang falls back to run llvm-gcc for i386 kexts. As of clang svn r140187, we're now just searching paths with several different Darwin versions on either side of the current version, so this is no longer needed. llvm-svn: 140188
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Host.inc9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Support/Unix/Host.inc b/llvm/lib/Support/Unix/Host.inc
index c5de97f73c9..dda3ce2c6f9 100644
--- a/llvm/lib/Support/Unix/Host.inc
+++ b/llvm/lib/Support/Unix/Host.inc
@@ -29,15 +29,6 @@ using namespace llvm;
static std::string getOSVersion() {
struct utsname info;
-#ifdef __APPLE__
- // Recognize UNAME_RELEASE environment variable to match Darwin's uname,
- // where the value of this variable sets the OS release version
- // reported by "uname -r".
- const char *UnameOverride = ::getenv("UNAME_RELEASE");
- if (UnameOverride && UnameOverride[0] != '\0')
- return UnameOverride;
-#endif // __APPLE__
-
if (uname(&info))
return "";
OpenPOWER on IntegriCloud