Skip to content

Commit 765ae34

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 d540f38 commit 765ae34

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
@@ -598,6 +598,7 @@ class Driver {
598598
/// compilation based on which -f(no-)?lto(=.*)? option occurs last.
599599
void setLTOMode(const llvm::opt::ArgList &Args);
600600

601+
public:
601602
/// Retrieves a ToolChain for a particular \p Target triple.
602603
///
603604
/// Will cache ToolChains for the life of the driver object, and create them
@@ -606,6 +607,7 @@ class Driver {
606607
const llvm::Triple &Target) const;
607608

608609
/// @}
610+
private:
609611

610612
/// Get bitmasks for which option flags to include and exclude based on
611613
/// the driver mode.

0 commit comments

Comments
 (0)