| 58 | |
| 59 | |
| 60 | std::optional<std::string> RTTI::DemangleNameItanium(BinaryView* view, bool allowMangled, const std::string &mangledName) |
| 61 | { |
| 62 | // NOTE: Passing false to allowMangled to fallthrough to GNU3 demangler. |
| 63 | if (auto demangledName = DemangleNameLLVM(false, mangledName)) |
| 64 | return RemoveItaniumPrefix(demangledName.value()); |
| 65 | if (auto demangledName = DemangleNameGNU3(view, allowMangled, mangledName)) |
| 66 | return RemoveItaniumPrefix(demangledName.value()); |
| 67 | return std::nullopt; |
| 68 | } |
| 69 | |
| 70 | |
| 71 | std::optional<std::string> RTTI::DemangleNameLLVM(bool allowMangled, const std::string &mangledName) |
nothing calls this directly
no test coverage detected