================
@@ -298,6 +299,14 @@ struct LoweringPreparePass
clang::ASTContext *astCtx;
+ /// Target/ABI facts sourced from the module's own attributes.
+ std::unique_ptr<cir::LowerModule> lowerModule;
+
+ const clang::TargetInfo &getTargetInfo() const {
+ assert(lowerModule && "LoweringPrepare requires a module with a triple");
----------------
koparasy wrote:
Not reachable: the CIRGen pipeline is the only caller and always sets the
triple, plus the pass needs an ASTContext so it can't run standalone via
cir-opt.
https://github.com/llvm/llvm-project/pull/219078
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits