Previously in LLVM version 4 and lower, it was possible to access the debug information for program constructs via some API calls. For example, to get the DWARF info of a struct I could write:
MDNode* structNode;
DIType structType(structNode);
assert(strType.getTag() == dwarf::DW_TAG_structure_type);
With the current version of LLVM, these functions are gutted out. Do you know the alternative approach for accessing the debug info such as the example above?