We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2c7187 commit 798f43cCopy full SHA for 798f43c
include/swift/Driver/Compilation.h
@@ -74,7 +74,7 @@ class Compilation {
74
75
/// The ToolChain this Compilation was built with, that it may reuse to build
76
/// subsequent BatchJobs.
77
- LLVM_ATTRIBUTE_UNUSED const ToolChain &TheToolChain;
+ const ToolChain &TheToolChain;
78
79
/// The OutputInfo, which the Compilation stores a copy of upon
80
/// construction, and which it may use to build subsequent batch
@@ -203,6 +203,10 @@ class Compilation {
203
std::unique_ptr<UnifiedStatsReporter> Stats = nullptr);
204
~Compilation();
205
206
+ ToolChain const &getToolChain() const {
207
+ return TheToolChain;
208
+ }
209
+
210
OutputInfo const &getOutputInfo() const {
211
return TheOutputInfo;
212
}
0 commit comments