[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


================
@@ -626,6 +627,12 @@ int main(int argc, char **argv) {
     Str.reset(TheTarget->createAsmStreamer(Ctx, std::move(FOut), std::move(IP),
                                            std::move(CE), std::move(MAB)));
 
+    Triple T(TripleName);
+    if (T.isLFI()) {
+      Str->initSections(NoExecStack, *STI);
+      initializeLFIMCStreamer(*Str.get(), Ctx, T);
+    }
+
----------------
aengelke wrote:

Remove empty line.

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


More information about the cfe-commits mailing list