mirror of
https://github.com/intel/llvm.git
synced 2026-01-18 16:50:51 +08:00
Symbol::replace intends to overwrite a few fields (mostly Elf{32,64}_Sym
fields), but the implementation copies all fields then restores some old fields.
This is error-prone and wasteful. Add Symbol::overwrite to copy just the
needed fields and add other overwrite member functions to copy the extra
fields.
52 KiB
52 KiB