redstar wrote: > Why do we need all that "virtual section" stuff? Wouldn't it suffice to exit > early from ::writeText if the section length is zero?
A virtual sections cannot contain data, and the MC layer checks that this is the case. This is the benefit I see in using a virtual sections. But of course, it is sufficient to just check the section length. https://github.com/llvm/llvm-project/pull/137235 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits