summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2017-11-20 21:46:29 +0000
committerErich Keane <erich.keane@intel.com>2017-11-20 21:46:29 +0000
commit523edb0a3abebc8c1f00b2b8413650d47960d4dc (patch)
treea11efcb73c9d1f43030664b9779d9c98efeb1dc4 /clang/lib/Frontend/InitPreprocessor.cpp
parent8b6ef88e7eb618dea0160eaddecf901eb28bc2e1 (diff)
downloadbcm5719-llvm-523edb0a3abebc8c1f00b2b8413650d47960d4dc.tar.gz
bcm5719-llvm-523edb0a3abebc8c1f00b2b8413650d47960d4dc.zip
Revert r318669/318694
Broke some libclang tests, so reverting for now. llvm-svn: 318698
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index 6980706a90d..1dfbf187554 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -70,15 +70,6 @@ static void AddImplicitInclude(MacroBuilder &Builder, StringRef File) {
Builder.append(Twine("#include \"") + File + "\"");
}
-/// AddImplicitSystemIncludeIfExists - Add an implicit system \#include of the
-/// specified file to the predefines buffer: precheck with __has_include.
-static void AddImplicitSystemIncludeIfExists(MacroBuilder &Builder,
- StringRef File) {
- Builder.append(Twine("#if __has_include( <") + File + ">)");
- Builder.append(Twine("#include <") + File + ">");
- Builder.append(Twine("#endif"));
-}
-
static void AddImplicitIncludeMacros(MacroBuilder &Builder, StringRef File) {
Builder.append(Twine("#__include_macros \"") + File + "\"");
// Marker token to stop the __include_macros fetch loop.
@@ -1119,13 +1110,6 @@ void clang::InitializePreprocessor(
// Exit the command line and go back to <built-in> (2 is LC_LEAVE).
if (!PP.getLangOpts().AsmPreprocessor)
Builder.append("# 1 \"<built-in>\" 2");
-
- // Process -fsystem-include-if-exists directives.
- for (unsigned i = 0,
- e = InitOpts.FSystemIncludeIfExists.size(); i != e; ++i) {
- const std::string &Path = InitOpts.FSystemIncludeIfExists[i];
- AddImplicitSystemIncludeIfExists(Builder, Path);
- }
// If -imacros are specified, include them now. These are processed before
// any -include directives.
OpenPOWER on IntegriCloud