diff options
author | Sebastian Pop <spop@codeaurora.org> | 2011-11-01 21:31:44 +0000 |
---|---|---|
committer | Sebastian Pop <spop@codeaurora.org> | 2011-11-01 21:31:44 +0000 |
commit | de2e0b5e6d5aa7eccf62df17b86c31b39732bf86 (patch) | |
tree | ca5f8e284accdbff57c8591432e9b49017220dab /lib | |
parent | c4cbf4a6a42a066b6232b44c6931452f8fc00857 (diff) | |
download | llvm-de2e0b5e6d5aa7eccf62df17b86c31b39732bf86.tar.gz llvm-de2e0b5e6d5aa7eccf62df17b86c31b39732bf86.tar.bz2 llvm-de2e0b5e6d5aa7eccf62df17b86c31b39732bf86.tar.xz |
rename LLVM_HOSTTRIPLE into LLVM_DEFAULT_TARGET_TRIPLE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Support/Unix/Host.inc | 5 | ||||
-rw-r--r-- | lib/Support/Windows/Host.inc | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/Support/Unix/Host.inc b/lib/Support/Unix/Host.inc index dda3ce2c6f..dc1641722b 100644 --- a/lib/Support/Unix/Host.inc +++ b/lib/Support/Unix/Host.inc @@ -36,10 +36,7 @@ static std::string getOSVersion() { } std::string sys::getHostTriple() { - // FIXME: Derive directly instead of relying on the autoconf generated - // variable. - - StringRef HostTripleString(LLVM_HOSTTRIPLE); + StringRef HostTripleString(LLVM_DEFAULT_TARGET_TRIPLE); std::pair<StringRef, StringRef> ArchSplit = HostTripleString.split('-'); // Normalize the arch, since the host triple may not actually match the host. diff --git a/lib/Support/Windows/Host.inc b/lib/Support/Windows/Host.inc index 733830e82f..5bbc74e5a3 100644 --- a/lib/Support/Windows/Host.inc +++ b/lib/Support/Windows/Host.inc @@ -18,6 +18,5 @@ using namespace llvm; std::string sys::getHostTriple() { - // FIXME: Adapt to running version. - return LLVM_HOSTTRIPLE; + return LLVM_DEFAULT_TARGET_TRIPLE; } |