Skip to content

Commit 22c38f0

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 d3dabf5 commit 22c38f0

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

604+
public:
604605
/// Retrieves a ToolChain for a particular \p Target triple.
605606
///
606607
/// Will cache ToolChains for the life of the driver object, and create them
@@ -609,6 +610,7 @@ class Driver {
609610
const llvm::Triple &Target) const;
610611

611612
/// @}
613+
private:
612614

613615
/// Retrieves a ToolChain for a particular device \p Target triple
614616
///

0 commit comments

Comments
 (0)