Tools such as llvm-objdump or llvm-readobj support indirect symbol
tables. Here, support it for obj2yaml and yaml2obj.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/ObjectYAML/MachOEmitter.cpp | ||
---|---|---|
568 | 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. |
llvm/lib/ObjectYAML/MachOEmitter.cpp | ||
---|---|---|
568 | I like sizeof(llvm::yaml::Hex32::BaseType) since it's clearer. |
A few nits, but mostly looks good.
llvm/include/llvm/ObjectYAML/MachOYAML.h | ||
---|---|---|
124 | Shouldn't need the explicit llvm prefix, since you're already in the llvm namespace. | |
llvm/lib/ObjectYAML/MachOEmitter.cpp | ||
567 | UpperCamelCase for variable names. Also, I'd not use auto here: the type isn't obvious from the RHS (although if you're keen on following existing style in this immediate area, I can live with it). | |
569 | ||
llvm/test/ObjectYAML/MachO/dsymtab.yaml | ||
4 | Is this the minimum this document can be reduced to? There's a lot of stuff that has no value to the test, although I know that Mach-O yaml2obj's side doesn't allow much to be removed to minimise noise. |
llvm/test/ObjectYAML/MachO/dsymtab.yaml | ||
---|---|---|
4 | Updated. Most of the LinkEditData could be removed (except the one under test), but the FileHeader and LoadCommands are required in order to not break the continuity of the binary. |
Shouldn't need the explicit llvm prefix, since you're already in the llvm namespace.