This is an archive of the discontinued LLVM Phabricator instance.

[MC] Error on a .zerofill directive in a non-virtual section
ClosedPublic

Authored by thegameg on Jun 23 2018, 2:35 AM.

Details

Summary

On darwin, all virtual sections have zerofill type, and having a .zerofill directive in a non-virtual section is not allowed. Instead of asserting, show a nicer error.

In order to use the equivalent of .zerofill in a non-virtual section, the usage of .zero of .space is required.

This patch replaces the assert with an error.

Diff Detail

Repository
rL LLVM