Skip to content

Commit 798f43c

Browse files
committed
[BatchMode] Make Compilation::TheToolChain available to clients.
1 parent a2c7187 commit 798f43c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/swift/Driver/Compilation.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class Compilation {
7474

7575
/// The ToolChain this Compilation was built with, that it may reuse to build
7676
/// subsequent BatchJobs.
77-
LLVM_ATTRIBUTE_UNUSED const ToolChain &TheToolChain;
77+
const ToolChain &TheToolChain;
7878

7979
/// The OutputInfo, which the Compilation stores a copy of upon
8080
/// construction, and which it may use to build subsequent batch
@@ -203,6 +203,10 @@ class Compilation {
203203
std::unique_ptr<UnifiedStatsReporter> Stats = nullptr);
204204
~Compilation();
205205

206+
ToolChain const &getToolChain() const {
207+
return TheToolChain;
208+
}
209+
206210
OutputInfo const &getOutputInfo() const {
207211
return TheOutputInfo;
208212
}

0 commit comments

Comments
 (0)