This is an archive of the discontinued LLVM Phabricator instance.

[lldb][Core] Remove dead codepath in Mangled
ClosedPublic

Authored by xiaobai on May 12 2020, 4:14 PM.

Details

Summary

Objective-C names are stored in m_demangled, not in m_mangled. The
method in the condition will never return true.

Diff Detail

Event Timeline

xiaobai created this revision.May 12 2020, 4:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2020, 4:14 PM
davide accepted this revision.May 12 2020, 5:10 PM
davide added a subscriber: davide.

Presumably.

This revision is now accepted and ready to land.May 12 2020, 5:10 PM

I'm curious what happens if you end up here with something like _T. Did you check?

I'm curious what happens if you end up here with something like _T. Did you check?

I assume you're talking about swift, which should be handled by a SwiftLanguage plugin. Can Objective-C names be mangled with the swift mangling scheme?

Note that there is no guarantee that ObjC names won't be mangled. They aren't on macOS because the macOS linker grew up along with objC so all the weird characters it introduces into the symbol namespace ([,],-,+, ,etc...) are allowed. Way back in the day when WebObjects ran on Windows ObjC names weren't legal, and were mangled. Just saying...

This revision was automatically updated to reflect the committed changes.