The C API doesn't have the bindings to create macro debug information.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/include/llvm-c/DebugInfo.h | ||
---|---|---|
486 | Where are these definitions from? |
llvm/include/llvm-c/DebugInfo.h | ||
---|---|---|
486 | MacinfoRecordType. I think having a parallel for that type in the C API needs to come along with this patch. |
Mybad, llvm::dwarf::MacinfoRecordType (in llvm/BinaryFormat/Dwarf.h) isn't generated using Dwarf.def, so I just used the same values for another enum in llvm-c/DebugInfo.h.
The values in llvm::dwarf::MacinfoRecordType won't move as they are defined by the DWARFv4 standard (Figure 39. Macinfo Type Encodings, at page 194/325), so it is safe to static_cast it from the new LLVMDWARFMacinfoRecordType to MacinfoRecordType.
Add tests, added a note that LLVMDWARFMacinfoRecordType values come from the DWARF spec.
I don't have commit rights, I'd be glad if someone could commit this if the review pass, thanks.
Where are these definitions from?