aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2012-02-15 13:39:01 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2012-02-15 13:39:01 +0000
commit31c4690047f5f362ecf886f1586844b1aef0c4d2 (patch)
tree705f1b6d3cfc7f136840f226c0cf1e395f2ce594 /lib/Driver/Driver.cpp
parentd5f55dcb0de1cb03c93adc9a44a5ed24e4cb505d (diff)
First pass at Solaris toolchain support. This version compiles and links hello
world on Solaris 11 for both x86 and x86-64 using the built-in assembler and Solaris (not GNU) ld, however it currently relies on a hard-coded GCC location to find crtbegin.o and crtend.o, as well as libgcc and libgcc_eh. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150580 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r--lib/Driver/Driver.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index b494ed1239..4209c9598e 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -1663,6 +1663,9 @@ const ToolChain &Driver::getToolChain(const ArgList &Args,
else
TC = new toolchains::Linux(*this, Target);
break;
+ case llvm::Triple::Solaris:
+ TC = new toolchains::Solaris(*this, Target);
+ break;
case llvm::Triple::Win32:
TC = new toolchains::Windows(*this, Target);
break;