SizeOf() method of DIE values(unsigned SizeOf(const AsmPrinter *AP, dwarf::Form Form) const)
depends on AsmPrinter. AsmPrinter is too specific class here. This patch removes dependency
on AsmPrinter and use dwarf::FormParams structure instead. It allows calculate DIE values
size without using AsmPrinter. That refactoring is useful for D96035([dsymutil][DWARFlinker]
implement separate multi-thread processing for compile units.)
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/include/llvm/CodeGen/DIE.h | ||
---|---|---|
305 | sizeOf - If you are going to change the signature, switch the case to stick with the function naming convention. |
llvm/include/llvm/CodeGen/DIE.h | ||
---|---|---|
935–936 | As you switch the case, make a minor change per And remove the otherwise empty /// | |
936–937 |
One nit
llvm/include/llvm/BinaryFormat/Dwarf.h | ||
---|---|---|
654 | I didn't check what this is. For newer code, DWARF vN is preferred over DwarfN. |
I didn't check what this is. For newer code, DWARF vN is preferred over DwarfN.