[all-commits] [llvm/llvm-project] 977a1a: [ELF] Symbol::replace: use the old nameData/nameSi...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sat Feb 5 16:34:15 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 977a1a523c2c510d847bb7814b1e29774fc02472
https://github.com/llvm/llvm-project/commit/977a1a523c2c510d847bb7814b1e29774fc02472
Author: Fangrui Song <i at maskray.me>
Date: 2022-02-05 (Sat, 05 Feb 2022)
Changed paths:
M lld/ELF/Arch/PPC64.cpp
M lld/ELF/Driver.cpp
M lld/ELF/InputFiles.cpp
M lld/ELF/LTO.cpp
M lld/ELF/Relocations.cpp
M lld/ELF/Symbols.cpp
M lld/ELF/Symbols.h
M lld/ELF/Writer.cpp
Log Message:
-----------
[ELF] Symbol::replace: use the old nameData/nameSize. NFC
Currently `this->getName() == newSym.getName()`.
By keeping the old nameData/nameSize, newSym's nameData/nameSize will be
ignored. The call sites can avoid calling getName().
printTraceSymbol needs to take the symbol name since `other`'s name is empty.
More information about the All-commits
mailing list