summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains.h
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-11-05 20:17:13 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-11-05 20:17:13 +0000
commita796f53821158c1d253ace1eb96071a3fac8dab1 (patch)
tree6c85a75572e9df416bd5333005d94259232f2efc /clang/lib/Driver/ToolChains.h
parentd0191a53c976c3ca9fbe481cd48f4736968218d5 (diff)
downloadbcm5719-llvm-a796f53821158c1d253ace1eb96071a3fac8dab1.tar.gz
bcm5719-llvm-a796f53821158c1d253ace1eb96071a3fac8dab1.zip
Move the Linux header searching from the Frontend to the Driver. This is
the first (and diff-noisiest) step to making Linux header searching tremendously more principled and less brittle. Note that this step should have essentially no functional impact. We still search the exact same set of paths in the exact same order. The only change here is where the code implementing such a search lives. This has one obvious negative impact -- we now pass a ludicrous number of flags to the CC1 layer. That should go away as I re-base this logic on the logic to detect a GCC installation. I want to do this in two phases so the bots can tell me if this step alone breaks something, and so that the diffs of the refactoring make more sense. llvm-svn: 143822
Diffstat (limited to 'clang/lib/Driver/ToolChains.h')
-rw-r--r--clang/lib/Driver/ToolChains.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains.h b/clang/lib/Driver/ToolChains.h
index f0c348402c4..cd3afa15853 100644
--- a/clang/lib/Driver/ToolChains.h
+++ b/clang/lib/Driver/ToolChains.h
@@ -380,6 +380,11 @@ public:
virtual Tool &SelectTool(const Compilation &C, const JobAction &JA,
const ActionList &Inputs) const;
+ virtual void AddClangSystemIncludeArgs(const ArgList &DriverArgs,
+ ArgStringList &CC1Args) const;
+ virtual void AddClangCXXStdlibIncludeArgs(const ArgList &DriverArgs,
+ ArgStringList &CC1Args) const;
+
std::string Linker;
std::vector<std::string> ExtraOpts;
};
OpenPOWER on IntegriCloud