[Assignment Tracking][9/*] Don't drop DIAssignID in dropUnknownNonDebugMetadata
authorOCHyams <orlando.hyams@sony.com>
Wed, 9 Nov 2022 10:49:55 +0000 (10:49 +0000)
committerOCHyams <orlando.hyams@sony.com>
Wed, 9 Nov 2022 10:49:55 +0000 (10:49 +0000)
commit02f50d05d5fea4e9c5fac310abccc5f7d770b25b
treed6673f08a185e87b002c0129c7acdc41bf238ba6
parenta9025f57bac1121a2aa5ac05f48f611cd2b3a64f
[Assignment Tracking][9/*] Don't drop DIAssignID in dropUnknownNonDebugMetadata

The Assignment Tracking debug-info feature is outlined in this RFC:

https://discourse.llvm.org/t/
rfc-assignment-tracking-a-better-way-of-specifying-variable-locations-in-ir

A DIAssignID attachment is debug metadata, so don't drop it.

Reviewed By: jmorse

Differential Revision: https://reviews.llvm.org/D133292
llvm/lib/IR/Metadata.cpp
llvm/unittests/IR/DebugInfoTest.cpp