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

Debug info should not be emitted when -g is not specified #793

Open
seven-mile opened this issue Aug 15, 2024 · 1 comment · May be fixed by #1145
Open

Debug info should not be emitted when -g is not specified #793

seven-mile opened this issue Aug 15, 2024 · 1 comment · May be fixed by #1145
Assignees
Labels
good first issue Good for newcomers invalid This doesn't seem right

Comments

@seven-mile
Copy link
Collaborator

Currently, the ClangIR pipeline emits certain DINodes regardless of whether the -g option is specified. This occurs because the LLVM translation process automatically collects debug information from FusedLoc and other well-known constructs in the LLVM dialect, leading to their emission.

I haven't found any option to disable this behavior directly. A straightforward solution is to strip the debug information from the final LLVM module, similar to opt -strip-debug.

@seven-mile seven-mile added the invalid This doesn't seem right label Aug 15, 2024
@bcardosolopes
Copy link
Member

Stripping would probably cost even more build time, perhaps the LLVM translation process could be made flexible instead and we'd get it for free

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers invalid This doesn't seem right
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants