Given a TypeIndex return its size in bytes. Basically is the
inverse to 'CodeViewDebug::lowerTypeBasic', that returns a
TypeIndex based in a size.
This work is required for https://reviews.llvm.org/D125784
Paths
| Differential D129846
[CodeView] Add function to get size in bytes for a TypeIndex. ClosedPublic Authored by CarlosAlbertoEnciso on Jul 15 2022, 4:43 AM.
Details Summary Given a TypeIndex return its size in bytes. Basically is the This work is required for https://reviews.llvm.org/D125784
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jul 26 2022, 3:01 AM
This revision was landed with ongoing or failed builds.Aug 8 2022, 12:50 AM Closed by commit rGa3f7a2c18345: [CodeView] Add function to get size in bytes for TypeIndex/CVType. (authored by CarlosAlbertoEnciso). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 450719 llvm/include/llvm/DebugInfo/CodeView/TypeRecordHelpers.h
llvm/lib/DebugInfo/CodeView/TypeRecordHelpers.cpp
|
These two methods have the same name but appear to do different things: The TypeIndex version returns sizeof(T), and the CVType version returns the size of the CVType record. Should they be named differently?