Commit f02f1ce3 authored by Rafael Espindola's avatar Rafael Espindola
Browse files

Move Repl to SectionBase.

It is currently in InputSectionBase. Only InputSections are used in
ICF, so Repl should be move to InputSection to clear the class
hierarchy or, like this patch does, to SectionBase for convenience.

The convenience of having it on the base class is that we can just
access the replacement without having to first check if it is an
InputSection. It is a bit less code and a bit faster as some of this
code is very hot.

I got up to 1.77% improvement in clang-gdb-index and no regressions
according to lnt.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@320654 91177308-0d34-0410-b5e6-96231b3b80d8
parent c6fc1d7b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment