aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-05-02 18:28:39 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-05-02 18:28:39 +0000
commit11e1b40d759a643086f590f6ffbd9d68360bad46 (patch)
treed525665346e4751c9e36017b8719e2eba27332ac /lib/Driver/Driver.cpp
parentf9b8bc662a84bb89a2d98530592f5d8fb6bee761 (diff)
DragonFly ToolChain definition for driver.
- Patch by Alex Hornung! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70635 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r--lib/Driver/Driver.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index 6f75d3e7f9..8df64ea618 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -1169,7 +1169,10 @@ const HostInfo *Driver::GetHostInfo(const char *Triple) const {
if (memcmp(&OS[0], "freebsd", 7) == 0)
return createFreeBSDHostInfo(*this, Arch.c_str(), Platform.c_str(),
OS.c_str());
-
+ if (memcmp(&OS[0], "dragonfly", 9) == 0)
+ return createDragonFlyHostInfo(*this, Arch.c_str(), Platform.c_str(),
+ OS.c_str());
+
return createUnknownHostInfo(*this, Arch.c_str(), Platform.c_str(),
OS.c_str());
}