[lld-macho][nfc] lld/Common's `demangle()` is redundant for Mach-O
authorJez Ng <jezng@fb.com>
Fri, 14 Oct 2022 19:28:15 +0000 (15:28 -0400)
committerJez Ng <jezng@fb.com>
Fri, 14 Oct 2022 19:28:47 +0000 (15:28 -0400)
commit316123a2fce299ab86bceea67049b089efb11b9b
tree7330d532ae676016bfe4bec109ca5d9e4ac52fcc
parent1cfae76ed91a91aac9444e5a07d31965aae9a628
[lld-macho][nfc] lld/Common's `demangle()` is redundant for Mach-O

The only thing that the Common implementation does is a check for
`config->demangle`, but {D135189} added that check to
`maybeDemangleSymbol`, so there's no need to go through `Common`...

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D135942
lld/MachO/Symbols.cpp