The DebugDirectory contains a pointer to the CodeView info structure which is a
derivative of the OMF debug directory. The structure has evolved a bit over
time, and PDB 2.0 used a slightly different definition from PDB 7.0. Both of
these are specific to CodeView and not COFF. Reflect this by moving the
structure definitions into the DebugInfo/CodeView headers. Define a generic
DebugInfo union type that can be used to pass around a reference to the
DebugInfo irrespective of the versioning. NFC.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/DebugInfo/CodeView/CVDebugRecord.cpp | ||
---|---|---|
14–21 ↗ | (On Diff #67121) | This is pretty irregular, we usually have the constant have a normal type. I would expect this to be an enum. |
lib/DebugInfo/CodeView/CVDebugRecord.cpp | ||
---|---|---|
14–21 ↗ | (On Diff #67121) | I didnt consider making that an enum. I like that better. Ill change this. |
include/llvm/DebugInfo/CodeView/CVDebugRecord.h | ||
---|---|---|
18 | I'd give the enum an underlying type of uint32_t. |
I'd give the enum an underlying type of uint32_t.