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
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index 6f75d3e..8df64ea 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -1169,7 +1169,10 @@
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());
}