diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-04 21:07:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-04 21:07:38 +0000 |
commit | 3a47c4e0a3e8d13ee4fb06cc3a98f9cfa9982400 (patch) | |
tree | 38ce3fadb0d9541c4b51afeb960afc4ae13deaef /lib/Driver/Driver.cpp | |
parent | 97c00070868aa3230e67a35b74210bc202a5eb2d (diff) |
add TCE target support, patch by Pekka J!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97746 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index ec8227efb3..64168b4d83 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -1145,6 +1145,10 @@ const HostInfo *Driver::GetHostInfo(const char *TripleStr) const { llvm::PrettyStackTraceString CrashInfo("Constructing host"); llvm::Triple Triple(TripleStr); + // TCE is an osless target + if (Triple.getArchName() == "tce") + return createTCEHostInfo(*this, Triple); + switch (Triple.getOS()) { case llvm::Triple::AuroraUX: return createAuroraUXHostInfo(*this, Triple); |