forked from OSchip/llvm-project
parent
bbb5deace6
commit
20f2d4382f
|
@ -346,8 +346,8 @@ llvm::DIType CGDebugInfo::CreateType(const BlockPointerType *Ty,
|
|||
FType = CGM.getContext().IntTy;
|
||||
EltTys.push_back(CreateMemberType(Unit, FType, "__flags", &FieldOffset));
|
||||
EltTys.push_back(CreateMemberType(Unit, FType, "__reserved", &FieldOffset));
|
||||
FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy);
|
||||
EltTys.push_back(CreateMemberType(Unit, FType, "__FuncPtr", &FieldOffset));
|
||||
EltTys.push_back(CreateMemberType(Unit, FType, "__reserved", &FieldOffset));
|
||||
|
||||
FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy);
|
||||
FieldTy = DescTy;
|
||||
|
|
|
@ -196,6 +196,7 @@ private:
|
|||
/// CreateTypeNode - Create type metadata for a source language type.
|
||||
llvm::DIType CreateTypeNode(QualType Ty, llvm::DIFile F);
|
||||
|
||||
/// CreateMemberType - Create new member and increase Offset by FType's size.
|
||||
llvm::DIType CreateMemberType(llvm::DIFile Unit, QualType FType,
|
||||
llvm::StringRef Name, uint64_t *Offset);
|
||||
|
||||
|
|
Loading…
Reference in New Issue