summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-11-04 07:12:58 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-11-04 07:12:58 +0000
commit9802c1406f06dc295df01ca86089a9e3de7224da (patch)
tree7bd68cbe2709914e7e83bed53770d9672ab729f8 /clang/lib/Driver/Tools.cpp
parent6bfd84f25d163b9939e74c79bcf6cc0f491e5ea5 (diff)
downloadbcm5719-llvm-9802c1406f06dc295df01ca86089a9e3de7224da.tar.gz
bcm5719-llvm-9802c1406f06dc295df01ca86089a9e3de7224da.zip
Add a FIXME to cleanup the CPATH handling. It's currently burried with
the rest of the mess in InitHeaderSearch.cpp. We could hoist it into the driver profitably, removing more noise from the driver -> frontend communication. llvm-svn: 143685
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index 98c2d28a9cf..24f88d9eb55 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -403,6 +403,8 @@ void Clang::AddPreprocessingOptions(const Driver &D,
Args.AddAllArgs(CmdArgs, options::OPT_fauto_module_import);
// Parse additional include paths from environment variables.
+ // FIXME: We should probably sink the logic for handling these from the
+ // frontend into the driver. It will allow deleting 4 otherwise unused flags.
// CPATH - included following the user specified includes (but prior to
// builtin and standard includes).
AddIncludeDirectoryList(Args, CmdArgs, "-I", ::getenv("CPATH"));
OpenPOWER on IntegriCloud