[PATCH] D125784: [llvm-dva] 09 - CodeView Reader
Carlos Alberto Enciso via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 15 03:51:40 PDT 2022
CarlosAlbertoEnciso added inline comments.
================
Comment at: llvm/lib/DebugInfo/CodeView/TypeRecordHelpers.cpp:119-120
+ return 8;
+ case SimpleTypeKind::Float80:
+ return 10;
+ case SimpleTypeKind::Float128:
----------------
djtodoro wrote:
> djtodoro wrote:
> > is it really 10 bytes?
> can we have a test case for this?
I extracted those values from the `CodeViewDebug::lowerTypeBasic(const DIBasicType *Ty)` function.
```
switch (ByteSize) {
case 2: STK = SimpleTypeKind::Float16; break;
case 4: STK = SimpleTypeKind::Float32; break;
case 6: STK = SimpleTypeKind::Float48; break;
case 8: STK = SimpleTypeKind::Float64; break;
case 10: STK = SimpleTypeKind::Float80; break;
case 16: STK = SimpleTypeKind::Float128; break;
}
break;
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125784/new/
https://reviews.llvm.org/D125784
More information about the llvm-commits
mailing list