mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-01 17:35:38 +00:00
[MachOYAML] Don't output empty ExportTrie
The YAML representation was always outputting the root node of an export trie even if the trie was empty. While this doesn't really have any functional impact, it does add visual clutter to the yaml file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278307 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
497466801a
commit
50b70a6871
@ -138,7 +138,8 @@ void MappingTraits<MachOYAML::LinkEditData>::mapping(
|
||||
IO.mapOptional("BindOpcodes", LinkEditData.BindOpcodes);
|
||||
IO.mapOptional("WeakBindOpcodes", LinkEditData.WeakBindOpcodes);
|
||||
IO.mapOptional("LazyBindOpcodes", LinkEditData.LazyBindOpcodes);
|
||||
IO.mapOptional("ExportTrie", LinkEditData.ExportTrie);
|
||||
if(LinkEditData.ExportTrie.Children.size() > 0 || !IO.outputting())
|
||||
IO.mapOptional("ExportTrie", LinkEditData.ExportTrie);
|
||||
IO.mapOptional("NameList", LinkEditData.NameList);
|
||||
IO.mapOptional("StringTable", LinkEditData.StringTable);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user