Skip to content

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

@seven-mile

Description

@seven-mile

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions