mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +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:
@@ -720,9 +720,9 @@ DICompositeType DIBuilder::createUnionType(DIDescriptor Scope, StringRef Name,
|
||||
}
|
||||
|
||||
/// createSubroutineType - Create subroutine type.
|
||||
DICompositeType DIBuilder::createSubroutineType(DIFile File,
|
||||
DIArray ParameterTypes,
|
||||
unsigned Flags) {
|
||||
DISubroutineType DIBuilder::createSubroutineType(DIFile File,
|
||||
DITypeArray ParameterTypes,
|
||||
unsigned Flags) {
|
||||
// TAG_subroutine_type is encoded in DICompositeType format.
|
||||
Value *Elts[] = {
|
||||
GetTagConstant(VMContext, dwarf::DW_TAG_subroutine_type),
|
||||
@@ -741,7 +741,7 @@ DICompositeType DIBuilder::createSubroutineType(DIFile File,
|
||||
nullptr,
|
||||
nullptr // Type Identifer
|
||||
};
|
||||
return DICompositeType(MDNode::get(VMContext, Elts));
|
||||
return DISubroutineType(MDNode::get(VMContext, Elts));
|
||||
}
|
||||
|
||||
/// createEnumerationType - Create debugging information entry for an
|
||||
|
||||
Reference in New Issue
Block a user