Skip to content

[lldb] Refactor IsTaggedPointer to use demangler #6637

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

kastiglione
Copy link

@kastiglione kastiglione commented Apr 12, 2023

Use the demangled node tree inside IsTaggedPointer to avoid loading the Swift ASTContext for the type.

A demangled tree for an unowned reference is structured like so:

kind=Global
  kind=TypeMangling
    kind=Type
      kind=Unowned
        kind=Type
          kind=Class
            kind=Module, text="SomeModule"
            kind=Identifier, text="TheClass"

rdar://107961993

@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test

Copy link

@adrian-prantl adrian-prantl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome, thanks!

@kastiglione
Copy link
Author

@swift-ci test Windows Platform

@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test

@kastiglione
Copy link
Author

@swift-ci test Windows Platform

@kastiglione kastiglione merged commit e7c8cd8 into swift/release/5.9 Apr 15, 2023
@kastiglione kastiglione deleted the dl/lldb-refactor-istaggedpointer-to-use-demangler branch April 15, 2023 18:58
adrian-prantl pushed a commit to adrian-prantl/llvm-project that referenced this pull request May 5, 2023
Use the demangled node tree inside `IsTaggedPointer` to avoid loading the Swift ASTContext for the type.

A demangled tree for an unowned reference is structured like so:

```
kind=Global
  kind=TypeMangling
    kind=Type
      kind=Unowned
        kind=Type
          kind=Class
            kind=Module, text="SomeModule"
            kind=Identifier, text="TheClass"
```

rdar://107961993
(cherry picked from commit e7c8cd8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants