[PATCH] D62117: Make replaceSymbol a member function of Symbol.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 19 19:25:08 PDT 2019


ruiu created this revision.
ruiu added a reviewer: MaskRay.
Herald added subscribers: dexonsmith, steven_wu, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D62117

Files:
  lld/ELF/Driver.cpp
  lld/ELF/LTO.cpp
  lld/ELF/LinkerScript.cpp
  lld/ELF/Relocations.cpp
  lld/ELF/SymbolTable.cpp
  lld/ELF/Symbols.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62117.200197.patch
Type: text/x-patch
Size: 8579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190520/ecf09284/attachment.bin>


More information about the llvm-commits mailing list