[clang] c998106 - [Lex] Remove unused AddGnuCPlusPlusIncludePaths after e75f240a0432d827c28a5d77fad26a099ceb7a72
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 6 22:25:52 PDT 2023
Author: Fangrui Song
Date: 2023-09-06T22:25:47-07:00
New Revision: c998106a7fea2b11bee250dd1f92ed4418a08c5a
URL: https://github.com/llvm/llvm-project/commit/c998106a7fea2b11bee250dd1f92ed4418a08c5a
DIFF: https://github.com/llvm/llvm-project/commit/c998106a7fea2b11bee250dd1f92ed4418a08c5a.diff
LOG: [Lex] Remove unused AddGnuCPlusPlusIncludePaths after e75f240a0432d827c28a5d77fad26a099ceb7a72
Added:
Modified:
clang/lib/Lex/InitHeaderSearch.cpp
Removed:
################################################################################
diff --git a/clang/lib/Lex/InitHeaderSearch.cpp b/clang/lib/Lex/InitHeaderSearch.cpp
index 2c2fb767ca1ef9..2aaaca89a6a3ac 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) {
More information about the cfe-commits
mailing list