Instead of returning an optional, just return the input string if demangling fails, as that's what all callers use anyway.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D68015
[LLD] Simplify the demangleItanium function. NFC. ClosedPublic Authored by mstorsjo on Sep 25 2019, 3:48 AM.
Details Summary Instead of returning an optional, just return the input string if demangling fails, as that's what all callers use anyway.
Diff Detail Event TimelineHerald added subscribers: erik.pilkington, aheejin, arichardson and 2 others. · View Herald Transcript This revision is now accepted and ready to land.Sep 25 2019, 4:25 AM Closed by commit rL373077: [LLD] Simplify the demangleItanium function. NFC. (authored by mstorsjo). · Explain WhySep 27 2019, 5:24 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 221709 lld/Common/Strings.cpp
lld/ELF/SymbolTable.cpp
lld/ELF/Symbols.cpp
lld/include/lld/Common/Strings.h
lld/wasm/Symbols.cpp
|