This is an archive of the discontinued LLVM Phabricator instance.

Debug info: Emit objc_direct methods as members of their containing class
ClosedPublic

Authored by aprantl on Nov 21 2019, 9:59 AM.

Details

Summary

Emit objc_direct methods as members of their containing class even in DWARF 4 and earlier. This allows the debugger to recognize them as direct functions as opposed to Objective-C methods.

rdar://problem/57327663

Diff Detail

Event Timeline

aprantl created this revision.Nov 21 2019, 9:59 AM
MadCoder accepted this revision.Nov 21 2019, 10:09 AM
This revision is now accepted and ready to land.Nov 21 2019, 10:09 AM
JDevlieghere accepted this revision.Nov 21 2019, 10:30 AM

LGTM with two minor comments.

clang/lib/CodeGen/CGDebugInfo.cpp
4729

You could move this down and use the SmallVector ctor that takes two iterators. Although it only saves one line I think it better expresses your intent.

4733

s/v.4/v4/

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptNov 21 2019, 11:09 AM