[clang] [llvm] [LFI] Add MCLFIRewriter infrastructure (PR #172906)

Alexis Engelke via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 26 09:15:13 PST 2026


================
@@ -307,6 +310,10 @@ class LLVM_ABI MCStreamer {
     return StartTokLocPtr ? *StartTokLocPtr : SMLoc();
   }
 
+  void setLFIRewriter(MCLFIRewriter *Exp) { LFIRewriter.reset(Exp); }
----------------
aengelke wrote:

Should take unique_ptr. I assume this function is only called on LFI targets and otherwise the rewriter is null?

https://github.com/llvm/llvm-project/pull/172906


More information about the cfe-commits mailing list