mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
[Debug Info] add DISubroutineType and its creation takes DITypeArray.
DITypeArray is an array of DITypeRef, at its creation, we will create DITypeRef (i.e use the identifier if the type node has an identifier). This is the last patch to unique the type array of a subroutine type. rdar://17628609 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214132 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -232,7 +232,7 @@ protected:
|
||||
|
||||
// Function DI
|
||||
DIFile File = DBuilder.createFile("filename.c", "/file/dir/");
|
||||
DIArray ParamTypes = DBuilder.getOrCreateArray(ArrayRef<Value*>());
|
||||
DITypeArray ParamTypes = DBuilder.getOrCreateTypeArray(None);
|
||||
DICompositeType 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