aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ObjectYAML/MachOYAML.cpp
diff options
context:
space:
mode:
authorDaniel Rodríguez Troitiño <danielrodriguez@fb.com>2022-11-11 10:13:37 -0800
committerDaniel Rodríguez Troitiño <danielrodriguez@fb.com>2022-11-11 10:15:30 -0800
commitcf15d23e80af0e44ff5893d675294024bdd90eb8 (patch)
treef0b178acd737d2a2cdb108b396b65964cfb6993c /llvm/lib/ObjectYAML/MachOYAML.cpp
parent33d848b992ee1d3a6b39b3b6f1a42b46d583bf72 (diff)
downloadllvm-cf15d23e80af0e44ff5893d675294024bdd90eb8.zip
llvm-cf15d23e80af0e44ff5893d675294024bdd90eb8.tar.gz
llvm-cf15d23e80af0e44ff5893d675294024bdd90eb8.tar.bz2
[ObjectYAML] Basic support for chained fixups.
Add basic binary support for chained fixups. This allows basic tests with chained fixups without trying to create a format for them until the work on the Object library is considered finished. Reviewed By: pete Differential Revision: https://reviews.llvm.org/D134250
Diffstat (limited to 'llvm/lib/ObjectYAML/MachOYAML.cpp')
-rw-r--r--llvm/lib/ObjectYAML/MachOYAML.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ObjectYAML/MachOYAML.cpp b/llvm/lib/ObjectYAML/MachOYAML.cpp
index 7ba30c1..8c8b453 100644
--- a/llvm/lib/ObjectYAML/MachOYAML.cpp
+++ b/llvm/lib/ObjectYAML/MachOYAML.cpp
@@ -30,7 +30,7 @@ bool MachOYAML::LinkEditData::isEmpty() const {
WeakBindOpcodes.size() + LazyBindOpcodes.size() +
ExportTrie.Children.size() + NameList.size() +
StringTable.size() + FunctionStarts.size() +
- DataInCode.size();
+ ChainedFixups.size() + DataInCode.size();
}
namespace yaml {
@@ -167,6 +167,7 @@ void MappingTraits<MachOYAML::LinkEditData>::mapping(
IO.mapOptional("StringTable", LinkEditData.StringTable);
IO.mapOptional("IndirectSymbols", LinkEditData.IndirectSymbols);
IO.mapOptional("FunctionStarts", LinkEditData.FunctionStarts);
+ IO.mapOptional("ChainedFixups", LinkEditData.ChainedFixups);
IO.mapOptional("DataInCode", LinkEditData.DataInCode);
}