-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Use depth and index to lookup type metadata artificial variables #16937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
test with apple/swift-lldb#671 |
Build failed |
Build failed |
test with apple/swift-lldb#671 |
Build failed |
test with apple/swift-lldb#671 |
Build failed |
test with apple/swift-lldb#671 |
1 similar comment
test with apple/swift-lldb#671 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments inline. I'll try to review more carefully in the next hours.
@@ -1005,6 +1005,28 @@ static void VisitNodeDestructor( | |||
} | |||
} | |||
|
|||
static void VisitNodeDependentMember(ASTContext *ast, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should really add a lldb-moduleimport-test
test for this.
lib/IRGen/DebugTypeInfo.cpp
Outdated
@@ -56,6 +56,7 @@ DebugTypeInfo DebugTypeInfo::getFromTypeInfo(DeclContext *DC, | |||
// encounter one. | |||
size = Size(0); | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spurious newline I assume?
instead of using name and decl context. The advantages of this approach are three-fold: - This is necessary to support inlined generic functions. - We can retire the debugger-specific type name manfgling mode for archetypes. - This saves 270kb of debug information in the x86_64 libSwiftCore.dylib alone. <rdar://problem/38306256>
@dcci: Can you take another look? |
test with apple/swift-lldb#671 |
Build failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
test with apple/swift-lldb#671 |
test with apple/swift-lldb#671 |
Use depth and index to lookup type metadata artificial variables …
instead of using name and decl context.
The advantages of this approach are three-fold:
rdar://problem/38306256