From 6c4835978a1ece85d1ea26bddc9dcc73876f6b10 Mon Sep 17 00:00:00 2001 From: Erich Keane Date: Mon, 11 Dec 2017 18:14:51 +0000 Subject: Revert 320391: Certain targets are failing, pulling back to diagnose. llvm-svn: 320398 --- clang/lib/Frontend/InitPreprocessor.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'clang/lib/Frontend/InitPreprocessor.cpp') diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index 45760ae..d398904 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. @@ -1142,13 +1133,6 @@ void clang::InitializePreprocessor( if (!PP.getLangOpts().AsmPreprocessor) Builder.append("# 1 \"\" 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. for (unsigned i = 0, e = InitOpts.MacroIncludes.size(); i != e; ++i) -- cgit v1.1