Skip to content
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

DebugInfo: Updates test cases that add method declarations. #114760

Merged

Conversation

DianQK
Copy link
Member

@DianQK DianQK commented Aug 12, 2023

We've investigated one reason why debugging information often goes wrong at https://reviews.llvm.org/D152095.

LLVM can't handle IR where subprogram definitions are nested within DICompositeType when doing LTO builds, because there's no good way to cross the CU boundary to insert a nested DISubprogram definition in one CU into a type defined in another CU.

In #111167, we added a declaration for the DISubprogram for the method. This PR completes this test case.

stream history: https://rust-lang.zulipchat.com/#narrow/stream/187780-t-compiler.2Fwg-llvm/topic/Dwarf.20CUs/near/384269475.

We've investigated one reason why debugging information often goes wrong at https://reviews.llvm.org/D152095.
> LLVM can't handle IR where subprogram definitions are nested within DICompositeType when doing LTO builds,
> because there's no good way to cross the CU boundary to insert a nested DISubprogram definition in one CU into a type defined in another CU.
@rustbot
Copy link
Collaborator

rustbot commented Aug 12, 2023

r? @Mark-Simulacrum

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 12, 2023
@DianQK
Copy link
Member Author

DianQK commented Aug 12, 2023

r? @cuviper

@rustbot rustbot assigned cuviper and unassigned Mark-Simulacrum Aug 12, 2023
@DianQK DianQK force-pushed the update-test-for-type-decl-disubprogram branch from d06ceec to 6f5b4e3 Compare August 13, 2023 13:48
@cuviper
Copy link
Member

cuviper commented Aug 14, 2023

Thanks!

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Aug 14, 2023

📌 Commit 6f5b4e3 has been approved by cuviper

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 14, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 14, 2023
…iaskrgr

Rollup of 5 pull requests

Successful merges:

 - rust-lang#114745 (Make Const more useful in smir)
 - rust-lang#114752 (fixed *const [type error] does not implement the Copy trait)
 - rust-lang#114760 (DebugInfo: Updates test cases that add method declarations.)
 - rust-lang#114815 (Update books)
 - rust-lang#114817 (Remove unnecessary FIXME)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit e6a5ff2 into rust-lang:master Aug 14, 2023
11 checks passed
@rustbot rustbot added this to the 1.73.0 milestone Aug 14, 2023
@DianQK DianQK deleted the update-test-for-type-decl-disubprogram branch August 14, 2023 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants