summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChain.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-11-04 07:12:53 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-11-04 07:12:53 +0000
commit6bfd84f25d163b9939e74c79bcf6cc0f491e5ea5 (patch)
tree0a13c50e49b8b3a40064389ad7d0b4a2743632a8 /clang/lib/Driver/ToolChain.cpp
parentcaba032f489adccdbbafa891580c7d989bc9775a (diff)
downloadbcm5719-llvm-6bfd84f25d163b9939e74c79bcf6cc0f491e5ea5.tar.gz
bcm5719-llvm-6bfd84f25d163b9939e74c79bcf6cc0f491e5ea5.zip
Add a system include management interface to the toolchain, and call it
and the C++ include management routine from the proper place when forming preprocessor options in the driver. This is the first step to teaching the driver to manage all of the header search paths. Currently, these methods remain just stubs in the abstract toolchain. Subsequent patches will flesh them out with implementations for various toolchains based on the current code in InitHeaderSearch.cpp. llvm-svn: 143684
Diffstat (limited to 'clang/lib/Driver/ToolChain.cpp')
-rw-r--r--clang/lib/Driver/ToolChain.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
index d09ab16814a..88c39564ee1 100644
--- a/clang/lib/Driver/ToolChain.cpp
+++ b/clang/lib/Driver/ToolChain.cpp
@@ -211,6 +211,11 @@ std::string ToolChain::ComputeEffectiveClangTriple(const ArgList &Args,
return ComputeLLVMTriple(Args, InputType);
}
+void ToolChain::AddClangSystemIncludeArgs(const ArgList &DriverArgs,
+ ArgStringList &CC1Args) const {
+ // Each toolchain should provide the appropriate include flags.
+}
+
ToolChain::CXXStdlibType ToolChain::GetCXXStdlibType(const ArgList &Args) const{
if (Arg *A = Args.getLastArg(options::OPT_stdlib_EQ)) {
StringRef Value = A->getValue(Args);
@@ -230,7 +235,7 @@ void ToolChain::AddClangCXXStdlibIncludeArgs(const ArgList &Args,
bool ObjCXXAutoRefCount) const {
CXXStdlibType Type = GetCXXStdlibType(Args);
- // Header search paths are handled by the mass of goop in InitHeaderSearch.
+ // Header search paths are handled by each of the subclasses.
switch (Type) {
case ToolChain::CST_Libcxx:
OpenPOWER on IntegriCloud