This is an archive of the discontinued LLVM Phabricator instance.

MachineModuleInfo: Don't allow dynamically setting DbgInfoAvailable
ClosedPublic

Authored by arsenm on Apr 18 2022, 6:52 AM.

Details

Reviewers
rnk
Group Reviewers
debug-info
Summary

This can be set up front, and used only as a cache. This avoids a
field that looks like it requires MIR serialization.

I believe this fixes 2 bugs for CodeView. First, this addresses a
FIXME that the flag -diable-debug-info-print only works with
DWARF. Second, it fixes emitting debug info with emissionKind NoDebug.

Diff Detail

Event Timeline

arsenm created this revision.Apr 18 2022, 6:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2022, 6:52 AM
arsenm requested review of this revision.Apr 18 2022, 6:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2022, 6:52 AM
Herald added a subscriber: wdng. · View Herald Transcript
rnk accepted this revision.Apr 18 2022, 3:03 PM

lgtm, thanks!

This revision is now accepted and ready to land.Apr 18 2022, 3:03 PM