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

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 22 16:36:58 PDT 2026


================
@@ -626,6 +627,11 @@ 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);
----------------
MaskRay wrote:

Should not call `initSections`. I've removed it #187880 

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


More information about the llvm-commits mailing list