summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
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