Rewrite addSymbolWrap and applySymbolWrap. NFCI.
authorRui Ueyama <ruiu@google.com>
Sat, 4 Nov 2017 23:09:43 +0000 (23:09 +0000)
committerRui Ueyama <ruiu@google.com>
Sat, 4 Nov 2017 23:09:43 +0000 (23:09 +0000)
commitdc0b0b0df311007b1ac2dcfb9bec7df938e8561f
tree017754dc078bc704a9a9e28fac49a19f908591f5
parent45b81402e39aa4a80bbfce7637667074cc6ba9bf
Rewrite addSymbolWrap and applySymbolWrap. NFCI.

r317396 changed the way how we handle the -defsym option. The option is
now handled using the infrastructure for the linker script.

We used to handle both -defsym and -wrap using the same set of functions
in the symbol table. Now, we don't need to do that.

This patch rewrites the functions so that they become more straightforward.
The new functions directly handle -wrap rather than abstract it.

llvm-svn: 317426
lld/ELF/Driver.cpp
lld/ELF/SymbolTable.cpp
lld/ELF/SymbolTable.h