summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-30 21:06:03 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-30 21:06:03 +0000
commite24297c6b5171f51791be3b8eaffc9737f32ea63 (patch)
treed98907236866a4191831d9160f0e29918ab1d3d0 /clang/lib/Driver/Driver.cpp
parent32f4959ee4c6f2cf2fec9a2079bb85d209a6cb4d (diff)
downloadbcm5719-llvm-e24297c6b5171f51791be3b8eaffc9737f32ea63.tar.gz
bcm5719-llvm-e24297c6b5171f51791be3b8eaffc9737f32ea63.zip
Driver: Sketch FreeBSD tool chain.
- Patch by Ed Schouten! llvm-svn: 68061
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r--clang/lib/Driver/Driver.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 3f1a72d20c6..a51e4bdd9a7 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -999,6 +999,9 @@ const HostInfo *Driver::GetHostInfo(const char *Triple) const {
if (memcmp(&OS[0], "darwin", 6) == 0)
return createDarwinHostInfo(*this, Arch.c_str(), Platform.c_str(),
OS.c_str());
+ if (memcmp(&OS[0], "freebsd", 7) == 0)
+ return createFreeBSDHostInfo(*this, Arch.c_str(), Platform.c_str(),
+ OS.c_str());
return createUnknownHostInfo(*this, Arch.c_str(), Platform.c_str(),
OS.c_str());
OpenPOWER on IntegriCloud