Add an addAbsolute static function to Writer.cpp
authorAlexander Richardson <arichardson.kde@gmail.com>
Sat, 20 Oct 2018 11:12:50 +0000 (11:12 +0000)
committerAlexander Richardson <arichardson.kde@gmail.com>
Sat, 20 Oct 2018 11:12:50 +0000 (11:12 +0000)
commit39adc6df0d0a8367653c178cbafcd3cba35c24b1
treec5919af5edeffefc733ebfabd8c15e6c175ec666
parent14cfa0dcdc4a476bdbeff66cb0297ce68a1b8ad5
Add an addAbsolute static function to Writer.cpp

Summary:
SymbolTable::addAbsolute() was removed in rL344305.
To me this is more readable than the lambda named `Add` and in our
out-of-tree CHERI target we use addAbsolute() in another function.

Reviewers: ruiu, espindola

Reviewed By: ruiu

Subscribers: kristina, emaste, llvm-commits

Differential Revision: https://reviews.llvm.org/D53393

llvm-svn: 344842
lld/ELF/Writer.cpp