svn commit: r208666 -
projects/clangbsd-import/contrib/llvm/tools/clang/lib/Frontend
Ed Schouten
ed at FreeBSD.org
Mon May 31 05:35:46 UTC 2010
Author: ed
Date: Mon May 31 05:35:46 2010
New Revision: 208666
URL: http://svn.freebsd.org/changeset/base/208666
Log:
Remove extraneous include paths.
Modified:
projects/clangbsd-import/contrib/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp
Modified: projects/clangbsd-import/contrib/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp
==============================================================================
--- projects/clangbsd-import/contrib/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp Mon May 31 01:43:02 2010 (r208665)
+++ projects/clangbsd-import/contrib/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp Mon May 31 05:35:46 2010 (r208666)
@@ -408,6 +408,7 @@ static bool getWindowsSDKDir(std::string
void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple,
const HeaderSearchOptions &HSOpts) {
+#if 0 /* Remove unneeded include paths. */
// FIXME: temporary hack: hard-coded paths.
AddPath("/usr/local/include", System, true, false, false);
@@ -420,6 +421,7 @@ void InitHeaderSearch::AddDefaultCInclud
P.appendComponent("include");
AddPath(P.str(), System, false, false, false, /*IgnoreSysRoot=*/ true);
}
+#endif
// Add dirs specified via 'configure --with-c-include-dirs'.
llvm::StringRef CIncludeDirs(C_INCLUDE_DIRS);
@@ -869,7 +871,7 @@ void clang::ApplyHeaderSearchOptions(Hea
else
Init.AddDelimitedPaths(HSOpts.CEnvIncPath);
-#if 0 /* XXX: Always points to an invalid path. */
+#if 0 /* We place built-in includes in /usr/include. */
if (HSOpts.UseBuiltinIncludes) {
// Ignore the sys root, we *always* look for clang headers relative to
// supplied path.
More information about the svn-src-projects
mailing list