Skip to content

Commit eebb346

Browse files
committed
[cxx-interop] Allow Swift to get a Clang Toolchain from the Driver
Swift uses the Clang Driver to detect default include paths for C++ interop. This will allow us to revert #4693 and have a smaller diff with upstream.
1 parent 55c0948 commit eebb346

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/include/clang/Driver/Driver.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@ class Driver {
617617
/// compilation based on which -f(no-)?lto(=.*)? option occurs last.
618618
void setLTOMode(const llvm::opt::ArgList &Args);
619619

620+
public:
620621
/// Retrieves a ToolChain for a particular \p Target triple.
621622
///
622623
/// Will cache ToolChains for the life of the driver object, and create them
@@ -625,6 +626,7 @@ class Driver {
625626
const llvm::Triple &Target) const;
626627

627628
/// @}
629+
private:
628630

629631
/// Retrieves a ToolChain for a particular device \p Target triple
630632
///

0 commit comments

Comments
 (0)