This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Use DbgEntityKind in DbgEntity interface (NFC)
ClosedPublic

Authored by aaronpuchert on Nov 14 2021, 1:55 PM.

Details

Summary

It was being used occasionally already, and using it on the constructor
and getDbgEntityID has obvious type safety benefits.

Also use llvm_unreachable in the switch as usual, but since only these
two values are used in constructor calls I think it's still NFC.

Diff Detail

Event Timeline

aaronpuchert created this revision.Nov 14 2021, 1:55 PM
aaronpuchert requested review of this revision.Nov 14 2021, 1:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 14 2021, 1:55 PM
probinson accepted this revision.Nov 16 2021, 7:40 AM
probinson added a subscriber: probinson.

LGTM

This revision is now accepted and ready to land.Nov 16 2021, 7:40 AM