HomePhabricator

[DWARFYAML] Make the debug_ranges section optional.

Authored by Higuoxing on Sep 8 2020, 4:55 AM.

Description

[DWARFYAML] Make the debug_ranges section optional.

This patch makes the debug_ranges section optional. When we specify an
empty debug_ranges section, yaml2obj only emits the section header.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D87263