[PATCH] D39406: Merge SymbolBody and Symbol into one class, SymbolBody.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 29 09:06:50 PDT 2017
ruiu created this revision.
Herald added a subscriber: emaste.
SymbolBody and Symbol were separated classes due to a historical reason.
Symbol used to be a pointer to a SymbolBody, and the relationship
between Symbol and SymbolBody was n:1.
r2681780 changed that. Since that patch, SymbolBody and Symbol are
allocated next to each other to improve memory locality, and they have
1:1 relationship now. So, the separation of Symbol and SymbolBody no
longer makes sense.
This patch merges them into one class. In order to avoid updating too
many places, I chose SymbolBody as a unified name. I'll rename it Symbol
in a follow-up patch.
https://reviews.llvm.org/D39406
Files:
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/InputFiles.cpp
lld/ELF/LTO.cpp
lld/ELF/LinkerScript.cpp
lld/ELF/MarkLive.cpp
lld/ELF/Relocations.cpp
lld/ELF/SymbolTable.cpp
lld/ELF/SymbolTable.h
lld/ELF/Symbols.cpp
lld/ELF/Symbols.h
lld/ELF/SyntheticSections.cpp
lld/ELF/Writer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39406.120750.patch
Type: text/x-patch
Size: 55271 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171029/6a8ca79d/attachment-0001.bin>
More information about the llvm-commits
mailing list