diff options
author | Keith Smiley <keithbsmiley@gmail.com> | 2022-02-07 17:33:32 -0800 |
---|---|---|
committer | Keith Smiley <keithbsmiley@gmail.com> | 2022-02-13 09:24:47 -0800 |
commit | a6e1b3c5c223e4868ab77d6d66b62f136b12febc (patch) | |
tree | 775e1872bbdbb3f382c74777108fd2c8e5a7f6e8 /llvm/lib/ObjectYAML/MachOYAML.cpp | |
parent | c45c53bbae2801123776983dbd36a751284fa097 (diff) | |
download | llvm-a6e1b3c5c223e4868ab77d6d66b62f136b12febc.zip llvm-a6e1b3c5c223e4868ab77d6d66b62f136b12febc.tar.gz llvm-a6e1b3c5c223e4868ab77d6d66b62f136b12febc.tar.bz2 |
[ObjectYAML][MachO] Add LC_FUNCTION_STARTS support
This adds support for encoding and decoding the LC_FUNCTION_STARTS load
command payload.
Differential Revision: https://reviews.llvm.org/D119205
Diffstat (limited to 'llvm/lib/ObjectYAML/MachOYAML.cpp')
-rw-r--r-- | llvm/lib/ObjectYAML/MachOYAML.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/ObjectYAML/MachOYAML.cpp b/llvm/lib/ObjectYAML/MachOYAML.cpp index f320094..b6f3b53 100644 --- a/llvm/lib/ObjectYAML/MachOYAML.cpp +++ b/llvm/lib/ObjectYAML/MachOYAML.cpp @@ -26,10 +26,10 @@ namespace llvm { MachOYAML::LoadCommand::~LoadCommand() = default; bool MachOYAML::LinkEditData::isEmpty() const { - return 0 == - RebaseOpcodes.size() + BindOpcodes.size() + WeakBindOpcodes.size() + - LazyBindOpcodes.size() + ExportTrie.Children.size() + - NameList.size() + StringTable.size(); + return 0 == RebaseOpcodes.size() + BindOpcodes.size() + + WeakBindOpcodes.size() + LazyBindOpcodes.size() + + ExportTrie.Children.size() + NameList.size() + + StringTable.size() + FunctionStarts.size(); } namespace yaml { @@ -165,6 +165,7 @@ void MappingTraits<MachOYAML::LinkEditData>::mapping( IO.mapOptional("NameList", LinkEditData.NameList); IO.mapOptional("StringTable", LinkEditData.StringTable); IO.mapOptional("IndirectSymbols", LinkEditData.IndirectSymbols); + IO.mapOptional("FunctionStarts", LinkEditData.FunctionStarts); } void MappingTraits<MachOYAML::RebaseOpcode>::mapping( |