llvm.org GIT mirror llvm / 50b70a6
[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 Chris Bieneman 3 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
137137 IO.mapOptional("BindOpcodes", LinkEditData.BindOpcodes);
138138 IO.mapOptional("WeakBindOpcodes", LinkEditData.WeakBindOpcodes);
139139 IO.mapOptional("LazyBindOpcodes", LinkEditData.LazyBindOpcodes);
140 IO.mapOptional("ExportTrie", LinkEditData.ExportTrie);
140 if(LinkEditData.ExportTrie.Children.size() > 0 || !IO.outputting())
141 IO.mapOptional("ExportTrie", LinkEditData.ExportTrie);
141142 IO.mapOptional("NameList", LinkEditData.NameList);
142143 IO.mapOptional("StringTable", LinkEditData.StringTable);
143144 }