Skip to content

Commit c998106

Browse files
committed
[Lex] Remove unused AddGnuCPlusPlusIncludePaths after e75f240
1 parent db5d845 commit c998106

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

clang/lib/Lex/InitHeaderSearch.cpp

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,6 @@ class InitHeaderSearch {
7777
SystemHeaderPrefixes.emplace_back(std::string(Prefix), IsSystemHeader);
7878
}
7979

80-
/// Add the necessary paths to support a gnu libstdc++.
81-
/// Returns true if the \p Base path was found, false if it does not exist.
82-
bool AddGnuCPlusPlusIncludePaths(StringRef Base, StringRef ArchDir,
83-
StringRef Dir32, StringRef Dir64,
84-
const llvm::Triple &triple);
85-
8680
/// Add the necessary paths to support a MinGW libstdc++.
8781
void AddMinGWCPlusPlusIncludePaths(StringRef Base,
8882
StringRef Arch,
@@ -190,27 +184,6 @@ bool InitHeaderSearch::AddUnmappedPath(const Twine &Path, IncludeDirGroup Group,
190184
return false;
191185
}
192186

193-
bool InitHeaderSearch::AddGnuCPlusPlusIncludePaths(StringRef Base,
194-
StringRef ArchDir,
195-
StringRef Dir32,
196-
StringRef Dir64,
197-
const llvm::Triple &triple) {
198-
// Add the base dir
199-
bool IsBaseFound = AddPath(Base, CXXSystem, false);
200-
201-
// Add the multilib dirs
202-
llvm::Triple::ArchType arch = triple.getArch();
203-
bool is64bit = arch == llvm::Triple::ppc64 || arch == llvm::Triple::x86_64;
204-
if (is64bit)
205-
AddPath(Base + "/" + ArchDir + "/" + Dir64, CXXSystem, false);
206-
else
207-
AddPath(Base + "/" + ArchDir + "/" + Dir32, CXXSystem, false);
208-
209-
// Add the backward dir
210-
AddPath(Base + "/backward", CXXSystem, false);
211-
return IsBaseFound;
212-
}
213-
214187
void InitHeaderSearch::AddMinGWCPlusPlusIncludePaths(StringRef Base,
215188
StringRef Arch,
216189
StringRef Version) {

0 commit comments

Comments
 (0)