]> granicus.if.org Git - clang/commit
refactor -ccc-gcc-name code
authorDylan Noblesmith <nobled@dreamwidth.org>
Sat, 9 Apr 2011 13:31:59 +0000 (13:31 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Sat, 9 Apr 2011 13:31:59 +0000 (13:31 +0000)
commitb8a3e8139b9fe513500c89bbcd9133415654a689
tree94a7876147d40ff81f5ca6896de5ae2cbff701f1
parenta49218e17bcbb1acde0245773173e2c0c42f4f19
refactor -ccc-gcc-name code

Put the logic for deciding the default name for gcc/g++
in the only place that actually cares about it.

This also pushes an ifdef out of the generic driver code
to a little further down, when the target is actually known.
Hopefully it can be changed into just a runtime check
in the future.

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