================
@@ -6601,6 +6573,72 @@ std::string Driver::GetClPchPath(Compilation &C, 
StringRef BaseName) const {
   return std::string(Output);
 }
 
+const ToolChain &Driver::getOffloadToolChain(
+    const llvm::opt::ArgList &Args, const Action::OffloadKind Kind,
+    const llvm::Triple &Target, const llvm::Triple &AuxTarget) const {
+  auto &TC = ToolChains[Target.str() + "/" + AuxTarget.str()];
+  auto &HostTC = ToolChains[AuxTarget.str()];
----------------
Artem-B wrote:

I think it would be useful here to spell out the type 
`std::unique_ptr<ToolChain>`. Otherwise, the `if(!TC)` and `TC= ...` blow look 
*very* suspicious.


https://github.com/llvm/llvm-project/pull/125095
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to