[all-commits] [llvm/llvm-project] a623a4: [ELF] Remove elf::config indirection. NFC
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sat Oct 1 11:40:01 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a623a4c8b4d5cc933ebc1856ce30aac935f62b18
https://github.com/llvm/llvm-project/commit/a623a4c8b4d5cc933ebc1856ce30aac935f62b18
Author: Fangrui Song <i at maskray.me>
Date: 2022-10-01 (Sat, 01 Oct 2022)
Changed paths:
M lld/ELF/Config.h
M lld/ELF/Driver.cpp
M lld/ELF/Relocations.cpp
Log Message:
-----------
[ELF] Remove elf::config indirection. NFC
`config` has 1000+ uses so we try to avoid changing `config->foo`. Define a
wrapper with LLVM_LIBRARY_VISIBILITY to remove unneeded GOT and unique_ptr
indirection.
My x86-64 lld executable is 11+KiB smaller.
More information about the All-commits
mailing list