[CodeView] Add function to get size in bytes for TypeIndex/CVType.
authorCarlos Alberto Enciso <carlos.alberto.enciso@gmail.com>
Mon, 8 Aug 2022 07:48:23 +0000 (08:48 +0100)
committerCarlos Alberto Enciso <carlos.alberto.enciso@gmail.com>
Mon, 8 Aug 2022 07:48:23 +0000 (08:48 +0100)
commita3f7a2c183455f390f017effc99bcd1b37328521
tree81397863e360cb9d2e4f102818d376c3acd43b18
parent7042417ef11ce34300908c53ee9659bf8f2ab9ec
[CodeView] Add function to get size in bytes for TypeIndex/CVType.

Given a TypeIndex or CVType return its size in bytes. Basically it
is the inverse to 'CodeViewDebug::lowerTypeBasic', that returns a
TypeIndex based in a size.

Reviewed By: rnk, djtodoro

Differential Revision: https://reviews.llvm.org/D129846
llvm/include/llvm/DebugInfo/CodeView/TypeRecordHelpers.h
llvm/lib/DebugInfo/CodeView/TypeRecordHelpers.cpp