diff --git a/clang/lib/Lex/InitHeaderSearch.cpp b/clang/lib/Lex/InitHeaderSearch.cpp index 2c2fb767ca1ef..2aaaca89a6a3a 100644 --- a/clang/lib/Lex/InitHeaderSearch.cpp +++ b/clang/lib/Lex/InitHeaderSearch.cpp @@ -77,12 +77,6 @@ class InitHeaderSearch { SystemHeaderPrefixes.emplace_back(std::string(Prefix), IsSystemHeader); } - /// Add the necessary paths to support a gnu libstdc++. - /// Returns true if the \p Base path was found, false if it does not exist. - bool AddGnuCPlusPlusIncludePaths(StringRef Base, StringRef ArchDir, - StringRef Dir32, StringRef Dir64, - const llvm::Triple &triple); - /// Add the necessary paths to support a MinGW libstdc++. void AddMinGWCPlusPlusIncludePaths(StringRef Base, StringRef Arch, @@ -190,27 +184,6 @@ bool InitHeaderSearch::AddUnmappedPath(const Twine &Path, IncludeDirGroup Group, return false; } -bool InitHeaderSearch::AddGnuCPlusPlusIncludePaths(StringRef Base, - StringRef ArchDir, - StringRef Dir32, - StringRef Dir64, - const llvm::Triple &triple) { - // Add the base dir - bool IsBaseFound = AddPath(Base, CXXSystem, false); - - // Add the multilib dirs - llvm::Triple::ArchType arch = triple.getArch(); - bool is64bit = arch == llvm::Triple::ppc64 || arch == llvm::Triple::x86_64; - if (is64bit) - AddPath(Base + "/" + ArchDir + "/" + Dir64, CXXSystem, false); - else - AddPath(Base + "/" + ArchDir + "/" + Dir32, CXXSystem, false); - - // Add the backward dir - AddPath(Base + "/backward", CXXSystem, false); - return IsBaseFound; -} - void InitHeaderSearch::AddMinGWCPlusPlusIncludePaths(StringRef Base, StringRef Arch, StringRef Version) {