summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/HostInfo.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-18 08:15:13 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-18 08:15:13 +0000
commit6276f99be57dea883d1f381fe5081fa28bd656da (patch)
treea8cd351bfd9e059ec61b2db4bbef5b0c7c927e03 /clang/lib/Driver/HostInfo.cpp
parent26d482a1a966ae57d59b2f5ea66b860551f8ab59 (diff)
downloadbcm5719-llvm-6276f99be57dea883d1f381fe5081fa28bd656da.tar.gz
bcm5719-llvm-6276f99be57dea883d1f381fe5081fa28bd656da.zip
Split Darwin toolchain into Clang and GCC Darwin toolchains with a common base.
llvm-svn: 82213
Diffstat (limited to 'clang/lib/Driver/HostInfo.cpp')
-rw-r--r--clang/lib/Driver/HostInfo.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/lib/Driver/HostInfo.cpp b/clang/lib/Driver/HostInfo.cpp
index e950b4a08ee..08c4ef49001 100644
--- a/clang/lib/Driver/HostInfo.cpp
+++ b/clang/lib/Driver/HostInfo.cpp
@@ -144,14 +144,14 @@ ToolChain *DarwinHostInfo::CreateToolChain(const ArgList &Args,
TCTriple.setArch(Arch);
// If we recognized the arch, match it to the toolchains we support.
- if (Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64)
- TC = new toolchains::Darwin(*this, TCTriple, DarwinVersion, GCCVersion,
- false);
- else if (Arch == llvm::Triple::arm || Arch == llvm::Triple::thumb)
- TC = new toolchains::Darwin(*this, TCTriple, DarwinVersion, GCCVersion,
- true);
+ if (Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64) {
+ // We still use the legacy DarwinGCC toolchain on X86.
+ TC = new toolchains::DarwinGCC(*this, TCTriple, DarwinVersion, GCCVersion,
+ false);
+ } else if (Arch == llvm::Triple::arm || Arch == llvm::Triple::thumb)
+ TC = new toolchains::DarwinClang(*this, TCTriple, DarwinVersion, true);
else
- TC = new toolchains::Darwin_GCC(*this, TCTriple);
+ TC = new toolchains::Darwin_Generic_GCC(*this, TCTriple);
}
return TC;
OpenPOWER on IntegriCloud