Skip to content

Commit ebd49bd

Browse files
authored
Merge pull request #4930 from apple/egorzhdan/revert-libstdcxx-stable20211026
Revert "[cxx-interop] Allow Swift to extract libstdc++ installation path from Clang"
2 parents 116acf4 + f42d4c4 commit ebd49bd

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

clang/include/clang/Driver/Driver.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -565,18 +565,6 @@ class Driver {
565565
return IsOffload ? OffloadLTOMode : LTOMode;
566566
}
567567

568-
/// Addition for Swift. Allows ClangImporter to extract the path to libstdc++.
569-
std::vector<std::string>
570-
getLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
571-
const llvm::Triple &Target) const {
572-
llvm::opt::ArgStringList ArgStrings;
573-
getToolChain(DriverArgs, Target)
574-
.addLibStdCxxIncludePaths(DriverArgs, ArgStrings);
575-
unsigned Unused1, Unused2;
576-
auto ParsedArgs = getOpts().ParseArgs(ArgStrings, Unused1, Unused2);
577-
return ParsedArgs.getAllArgValues(options::OPT_internal_isystem);
578-
}
579-
580568
private:
581569

582570
/// Tries to load options from configuration file.

clang/include/clang/Driver/ToolChain.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,6 @@ class ToolChain {
225225
llvm::vfs::FileSystem &getVFS() const;
226226
const llvm::Triple &getTriple() const { return Triple; }
227227

228-
/// Addition for Swift. Allows ClangImporter to extract the path to libstdc++.
229-
virtual void
230-
addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
231-
llvm::opt::ArgStringList &CC1Args) const {};
232-
233228
/// Get the toolchain's aux triple, if it has one.
234229
///
235230
/// Exactly what the aux triple represents depends on the toolchain, but for

0 commit comments

Comments
 (0)