[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.
Loading
Please sign in to comment