aboutsummaryrefslogtreecommitdiff
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
commitaabc6a9b79b179e7a69dd78900dcd05215977112 (patch)
tree1e08fec96f7b121e4333c88618fe973c08999ba5
parent4e423359721fa88cb50ccea51ccf1c520d765ad0 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140188 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Support/Unix/Host.inc9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Support/Unix/Host.inc b/lib/Support/Unix/Host.inc
index c5de97f73c..dda3ce2c6f 100644
--- a/lib/Support/Unix/Host.inc
+++ b/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 "";