summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Windows
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-07-07 09:53:47 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-07-07 09:53:47 +0000
commit3803df3dcdad05b68d1547ee9e1cbbd2996dbb23 (patch)
tree4f1d56800f4d07e05535c24be7d422dc53b5d910 /llvm/lib/Support/Windows
parent67049f034da014ad51f1e5a09fbb97a86925c31f (diff)
downloadbcm5719-llvm-3803df3dcdad05b68d1547ee9e1cbbd2996dbb23.tar.gz
bcm5719-llvm-3803df3dcdad05b68d1547ee9e1cbbd2996dbb23.zip
[Support] sys::getProcessTriple should return a macOS triple using
the system's version of macOS sys::getProcessTriple returns LLVM_HOST_TRIPLE, whose system version might not be the actual version of the system on which the compiler running. This commit ensures that, for macOS, sys::getProcessTriple returns a triple with the system's macOS version. rdar://33177551 Differential Revision: https://reviews.llvm.org/D34446 llvm-svn: 307372
Diffstat (limited to 'llvm/lib/Support/Windows')
-rw-r--r--llvm/lib/Support/Windows/Host.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/Windows/Host.inc b/llvm/lib/Support/Windows/Host.inc
index 7e196cf0ce1..461fb7833b8 100644
--- a/llvm/lib/Support/Windows/Host.inc
+++ b/llvm/lib/Support/Windows/Host.inc
@@ -17,6 +17,10 @@
using namespace llvm;
+static void updateTripleOSVersion(std::string &) {
+ // Do nothing.
+}
+
std::string sys::getDefaultTargetTriple() {
const char *Triple = LLVM_DEFAULT_TARGET_TRIPLE;
OpenPOWER on IntegriCloud