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

Sergei Barannikov via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 22 07:44:59 PDT 2026


================
@@ -566,6 +576,13 @@ class Target {
     return nullptr;
   }
 
+  void createMCLFIRewriter(MCStreamer &S,
+                           std::unique_ptr<MCRegisterInfo> &&RegInfo,
+                           std::unique_ptr<MCInstrInfo> &&InstInfo) const {
+    if (MCLFIRewriterCtorFn)
+      MCLFIRewriterCtorFn(S, std::move(RegInfo), std::move(InstInfo));
----------------
s-barannikov wrote:

Shouldn't it return the created object?

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


More information about the cfe-commits mailing list