This is a mechanical rewrite of replaceSymbol(A, B) to A->replace(B).
I also added a comment to Symbol::replace().
Technically this change is not necessary, but this change makes code a
bit more concise.
Paths
| Differential D62117
Make replaceSymbol a member function of Symbol. ClosedPublic Authored by ruiu on May 19 2019, 7:24 PM.
Details
Summary This is a mechanical rewrite of replaceSymbol(A, B) to A->replace(B). Technically this change is not necessary, but this change makes code a
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 19 2019, 7:33 PM
Closed by commit rL361123: Make replaceSymbol a member function of Symbol. (authored by ruiu). · Explain WhyMay 19 2019, 8:34 PM This revision was automatically updated to reflect the committed changes. smeenai added inline comments.
Revision Contents
Diff 200197 lld/ELF/Driver.cpp
lld/ELF/LTO.cpp
lld/ELF/LinkerScript.cpp
lld/ELF/Relocations.cpp
lld/ELF/SymbolTable.cpp
lld/ELF/Symbols.h
|
Consider renaming this since it is now a member function.