[PATCH] D114410: [ObjectYAML/obj2yaml/yaml2obj][MachO] Support indirect symbol table
Daniel RodrÃguez Troitiño via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 23 10:26:18 PST 2021
drodriguez added inline comments.
================
Comment at: llvm/lib/ObjectYAML/MachOEmitter.cpp:568
+ for (auto data : Obj.LinkEdit.IndirectSymbols)
+ OS.write(reinterpret_cast<const char *>(&data), 4);
+}
----------------
If I am not wrong, `llvm::yaml::Hex32` should have the same size as an `uint32_t`. In any case, it might be better to use a `sizeof(llvm::yaml::Hex32::BaseType)` or similar instead of a naked 4 in here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114410/new/
https://reviews.llvm.org/D114410
More information about the llvm-commits
mailing list