mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 17:24:48 +00:00
DebugInfo: Remove DIDescriptor from the DIBuilder API
As a step toward killing `DIDescriptor` and its subclasses, remove it from the `DIBuilder` API. Replace the subclasses with appropriate pointers from the new debug info hierarchy. There are a couple of possible surprises in type choices for out-of-tree frontends: - Subroutine types: `MDSubroutineType`, not `MDCompositeTypeBase`. - Composite types: `MDCompositeType`, not `MDCompositeTypeBase`. - Scopes: `MDScope`, not `MDNode`. - Generic debug info nodes: `DebugNode`, not `MDNode`. This is part of PR23080. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235111 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -230,7 +230,8 @@ protected:
|
||||
// Function DI
|
||||
DIFile File = DBuilder.createFile("filename.c", "/file/dir/");
|
||||
DITypeArray ParamTypes = DBuilder.getOrCreateTypeArray(None);
|
||||
DICompositeType FuncType = DBuilder.createSubroutineType(File, ParamTypes);
|
||||
MDSubroutineType *FuncType =
|
||||
DBuilder.createSubroutineType(File, ParamTypes);
|
||||
DICompileUnit CU = DBuilder.createCompileUnit(dwarf::DW_LANG_C99,
|
||||
"filename.c", "/file/dir", "CloneFunc", false, "", 0);
|
||||
|
||||
|
Reference in New Issue
Block a user