Driver: Move Clang "triple" computation routines to method on the
authorDaniel Dunbar <daniel@zuster.org>
Mon, 23 Aug 2010 22:35:37 +0000 (22:35 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 23 Aug 2010 22:35:37 +0000 (22:35 +0000)
commit00577ada44c889fbe311d61c51a8da89e65c7c9a
tree1f970108c64c2539607ad88a33bc1546d6ed433b
parent60a4543d42b6b8564a5650345de7beb7e99c60f3
Driver: Move Clang "triple" computation routines to method on the
ToolChain. This fixes a potenial bad cast when running Clang on PPC code, since
the tool chain in effect is not a subclass of the Darwin one, but we were
treating it like it was.
 - This introduces some gross code duplication, but the right fix for it is to
   just move the Driver to start depending on the targets in libBasic, so I am
   not planning on fixing it immediately.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111856 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/ToolChain.h
lib/Driver/ToolChain.cpp
lib/Driver/ToolChains.cpp
lib/Driver/ToolChains.h
lib/Driver/Tools.cpp