aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/ToolChains.cpp
diff options
context:
space:
mode:
authorSebastian Pop <spop@codeaurora.org>2012-01-13 20:36:46 +0000
committerSebastian Pop <spop@codeaurora.org>2012-01-13 20:36:46 +0000
commit9606a57b6f2c43bf438a958fdffea1de60f6b2b7 (patch)
tree0cf060b5da54d8bf86d9b41fc4a2a1156768a5f3 /lib/Driver/ToolChains.cpp
parente40141542d96f556b5c1b5e3b8acca8f11c27527 (diff)
rename DefaultHostTriple into DefaultTargetTriple
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r--lib/Driver/ToolChains.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
index 0ae91a8d7e..5a1cd16cf7 100644
--- a/lib/Driver/ToolChains.cpp
+++ b/lib/Driver/ToolChains.cpp
@@ -1096,7 +1096,7 @@ bool Generic_GCC::GCCVersion::operator<(const GCCVersion &RHS) const {
/// Once constructed, a GCCInstallation is esentially immutable.
Generic_GCC::GCCInstallationDetector::GCCInstallationDetector(const Driver &D)
: IsValid(false),
- GccTriple(D.DefaultHostTriple) {
+ GccTriple(D.DefaultTargetTriple) {
// FIXME: Using CXX_INCLUDE_ROOT is here is a bit of a hack, but
// avoids adding yet another option to configure/cmake.
// It would probably be cleaner to break it in two variables
@@ -1134,7 +1134,7 @@ Generic_GCC::GCCInstallationDetector::GCCInstallationDetector(const Driver &D)
// Always include the default host triple as the final fallback if no
// specific triple is detected.
- CandidateTriples.push_back(D.DefaultHostTriple);
+ CandidateTriples.push_back(D.DefaultTargetTriple);
// Compute the set of prefixes for our search.
SmallVector<std::string, 8> Prefixes(D.PrefixDirs.begin(),
@@ -1541,12 +1541,12 @@ FreeBSD::FreeBSD(const HostInfo &Host, const llvm::Triple& Triple)
// Determine if we are compiling 32-bit code on an x86_64 platform.
bool Lib32 = false;
if (Triple.getArch() == llvm::Triple::x86 &&
- llvm::Triple(getDriver().DefaultHostTriple).getArch() ==
+ llvm::Triple(getDriver().DefaultTargetTriple).getArch() ==
llvm::Triple::x86_64)
Lib32 = true;
if (Triple.getArch() == llvm::Triple::ppc &&
- llvm::Triple(getDriver().DefaultHostTriple).getArch() ==
+ llvm::Triple(getDriver().DefaultTargetTriple).getArch() ==
llvm::Triple::ppc64)
Lib32 = true;
@@ -1892,7 +1892,7 @@ static std::string getMultiarchTriple(const llvm::Triple TargetTriple,
Linux::Linux(const HostInfo &Host, const llvm::Triple &Triple)
: Generic_ELF(Host, Triple) {
llvm::Triple::ArchType Arch =
- llvm::Triple(getDriver().DefaultHostTriple).getArch();
+ llvm::Triple(getDriver().DefaultTargetTriple).getArch();
const std::string &SysRoot = getDriver().SysRoot;
// OpenSuse stores the linker with the compiler, add that to the search
@@ -2184,7 +2184,7 @@ void Linux::AddClangCXXStdlibIncludeArgs(const ArgList &DriverArgs,
// only support the suffix-based bi-arch-like header scheme for host/target
// mismatches of just bit width.
llvm::Triple::ArchType HostArch =
- llvm::Triple(getDriver().DefaultHostTriple).getArch();
+ llvm::Triple(getDriver().DefaultTargetTriple).getArch();
llvm::Triple::ArchType TargetArch = TargetTriple.getArch();
StringRef Suffix;
if ((HostArch == llvm::Triple::x86 && TargetArch == llvm::Triple::x86_64) ||