DebugInfo: ThinLTO: Import template parameters on type declarations
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 5 Apr 2022 21:28:10 +0000 (21:28 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 5 Apr 2022 21:29:58 +0000 (21:29 +0000)
commit6302a91468ebcaeac63951f9c89da9d89bc38ede
tree642e2c4260101d07f0887f0fc8a2ffd42691e164
parented9a14f912c034c6a7177d4bc8a2d41a22b3e129
DebugInfo: ThinLTO: Import template parameters on type declarations

Necessary when importing class template specializations that have
simplified template names (may otherwise be necessary - eg: Sony
requires template parameter DIEs even with unsimplified names, but short
of always importing names this is the best I can do for now) - long term
this probably needs a flag for the DICompositeType to specify whether it
needs template parameters on declarations & that flag could power this
behavior, rather than inspecting the name.
llvm/lib/Bitcode/Reader/MetadataLoader.cpp
llvm/test/ThinLTO/X86/debuginfo-compositetype-import.ll