diff options
author | Sebastian Pop <spop@codeaurora.org> | 2011-11-01 21:32:20 +0000 |
---|---|---|
committer | Sebastian Pop <spop@codeaurora.org> | 2011-11-01 21:32:20 +0000 |
commit | 94441fbad77bf451c2ca511e7c9cf54f85cf61fb (patch) | |
tree | cf4ebf69dac1cd006c5799c725c5ec41a1000995 /llvm/lib/Support/Unix | |
parent | ec2fb226d8b84ee1090f7d7fa2e0da6232fee469 (diff) | |
download | bcm5719-llvm-94441fbad77bf451c2ca511e7c9cf54f85cf61fb.tar.gz bcm5719-llvm-94441fbad77bf451c2ca511e7c9cf54f85cf61fb.zip |
rename getHostTriple into getDefaultTargetTriple
llvm-svn: 143502
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r-- | llvm/lib/Support/Unix/Host.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Support/Unix/Host.inc b/llvm/lib/Support/Unix/Host.inc index dc1641722b1..726e2fbcf05 100644 --- a/llvm/lib/Support/Unix/Host.inc +++ b/llvm/lib/Support/Unix/Host.inc @@ -35,11 +35,11 @@ static std::string getOSVersion() { return info.release; } -std::string sys::getHostTriple() { - StringRef HostTripleString(LLVM_DEFAULT_TARGET_TRIPLE); - std::pair<StringRef, StringRef> ArchSplit = HostTripleString.split('-'); +std::string sys::getDefaultTargetTriple() { + StringRef TargetTripleString(LLVM_DEFAULT_TARGET_TRIPLE); + std::pair<StringRef, StringRef> ArchSplit = TargetTripleString.split('-'); - // Normalize the arch, since the host triple may not actually match the host. + // Normalize the arch, since the target triple may not actually match the target. std::string Arch = ArchSplit.first; std::string Triple(Arch); @@ -52,7 +52,7 @@ std::string sys::getHostTriple() { Triple[1] = '3'; // On darwin, we want to update the version to match that of the - // host. + // target. std::string::size_type DarwinDashIdx = Triple.find("-darwin"); if (DarwinDashIdx != std::string::npos) { Triple.resize(DarwinDashIdx + strlen("-darwin")); |