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
Paths
| Differential D70544
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 TimelineThis revision is now accepted and ready to land.Nov 21 2019, 10:09 AM Closed by commit rGe0cabe280b80: Debug info: Emit objc_direct methods as members of their containing class (authored by aprantl). · Explain WhyNov 21 2019, 11:09 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 230477 clang/lib/CodeGen/CGDebugInfo.h
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGenObjC/debug-info-direct-method.m
|
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.