[PATCH] D30326: [MS-ABI] Allow #pragma section to choose for ZI data

Javed Absar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 1 08:20:22 PST 2017


javed.absar added a comment.

Hi Nico:
This is for the case when using  '#pragma bss_seg..' feature outside of msvc context. That's the reason for the flag.
One could use attribute, but as attribute is attached to individual declaration, while pragma applies to whole file (unless superseded by another pragma),  the latter is easier to use in some cases (i.e. when there are lots of such declarations). Hope this clarifies the question you asked.
Best Regards
Javed


https://reviews.llvm.org/D30326





More information about the cfe-commits mailing list