]> granicus.if.org Git - clang/commit
clang driver toolchain refactoring
authorXinliang David Li <davidxl@google.com>
Thu, 22 Oct 2015 06:15:31 +0000 (06:15 +0000)
committerXinliang David Li <davidxl@google.com>
Thu, 22 Oct 2015 06:15:31 +0000 (06:15 +0000)
commit37bc78dc7ac5d7d9029363d788ea7149db0d70a8
tree598017c210d3e7a495ed8440d32407dea2ee1be7
parenta78ab22562b897d56fd87fe777178d7fe38e6ccf
clang driver toolchain refactoring

In this patch, the file static method addProfileRT is
moved to be a virtual member function of base ToolChain class.
This allows derived toolchain to override the default behavior
easily and make it consistent with Darwin toolchain (a TODO was
added for this refactoring - now removed). A new helper method
is also introduced to test if instrumentation profile option
is turned on or not.

Differential Revision: http://reviews.llvm.org/D13326

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250994 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