================
@@ -462,6 +464,16 @@ class ToolChain {
   /// native LLVM support.
   virtual bool HasNativeLLVMSupport() const;
 
+  /// Returns the default LTO mode for this toolchain.
+  virtual LTOKind getDefaultLTOMode() const;
+
+  /// Resolve the requested LTO mode for this toolchain.
+  LTOKind getLTOMode(const llvm::opt::ArgList &Args,
+                     bool IsOffload = false) const;
+
+  /// Returns true if LTO is active for this toolchain given the args.
+  bool isUsingLTO(const llvm::opt::ArgList &Args, bool IsOffload = false) 
const;
----------------
jhuber6 wrote:

So you'd rather just take the offloading kind as an argument? Might be a bit 
simpler to do that check internally, I just figured it wasn't really relevant 
because we only need the boolean value but I can see the appeal of less on the 
call site.

https://github.com/llvm/llvm-project/pull/201155
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to