[all-commits] [llvm/llvm-project] 7518d3: [ELF] De-template LinkerDriver::link. NFC
Fangrui Song via All-commits
all-commits at lists.llvm.org
Tue Feb 1 09:48:08 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7518d38f0aa23d6a259753a2cbf8885ca6a58020
https://github.com/llvm/llvm-project/commit/7518d38f0aa23d6a259753a2cbf8885ca6a58020
Author: Fangrui Song <i at maskray.me>
Date: 2022-02-01 (Tue, 01 Feb 2022)
Changed paths:
M lld/ELF/Driver.cpp
M lld/ELF/Driver.h
M lld/ELF/Target.h
Log Message:
-----------
[ELF] De-template LinkerDriver::link. NFC
Replace `f<ELFT>(x)` with `InvokeELFT(f, x)`.
The size reduction comes from turning `link` from 4 specializations into 1.
My x86-64 lld executable is 26KiB smaller.
Reviewed By: ikudrin
Differential Revision: https://reviews.llvm.org/D118551
More information about the All-commits
mailing list