Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/IR/DIBuilder.cpp
Show First 20 Lines • Show All 519 Lines • ▼ Show 20 Lines | auto *CTy = DICompositeType::get( | ||||
getNonCompileUnitScope(Scope), UnderlyingType, SizeInBits, AlignInBits, 0, | getNonCompileUnitScope(Scope), UnderlyingType, SizeInBits, AlignInBits, 0, | ||||
IsScoped ? DINode::FlagEnumClass : DINode::FlagZero, Elements, 0, nullptr, | IsScoped ? DINode::FlagEnumClass : DINode::FlagZero, Elements, 0, nullptr, | ||||
nullptr, UniqueIdentifier); | nullptr, UniqueIdentifier); | ||||
AllEnumTypes.push_back(CTy); | AllEnumTypes.push_back(CTy); | ||||
trackIfUnresolved(CTy); | trackIfUnresolved(CTy); | ||||
return CTy; | return CTy; | ||||
} | } | ||||
DICompositeType *DIBuilder::createArrayType(uint64_t Size, | DICompositeType *DIBuilder::createArrayType( | ||||
uint32_t AlignInBits, DIType *Ty, | uint64_t Size, uint32_t AlignInBits, DIType *Ty, DINodeArray Subscripts, | ||||
DINodeArray Subscripts) { | PointerUnion<DIExpression *, DIVariable *> DL, | ||||
auto *R = DICompositeType::get(VMContext, dwarf::DW_TAG_array_type, "", | PointerUnion<DIExpression *, DIVariable *> AS, | ||||
nullptr, 0, nullptr, Ty, Size, AlignInBits, 0, | PointerUnion<DIExpression *, DIVariable *> AL, | ||||
DINode::FlagZero, Subscripts, 0, nullptr); | PointerUnion<DIExpression *, DIVariable *> RK) { | ||||
auto *R = DICompositeType::get( | |||||
VMContext, dwarf::DW_TAG_array_type, "", nullptr, 0, | |||||
nullptr, Ty, Size, AlignInBits, 0, DINode::FlagZero, | |||||
Subscripts, 0, nullptr, nullptr, "", nullptr, | |||||
DL.is<DIExpression *>() ? (Metadata *)DL.get<DIExpression *>() | |||||
: (Metadata *)DL.get<DIVariable *>(), | |||||
AS.is<DIExpression *>() ? (Metadata *)AS.get<DIExpression *>() | |||||
: (Metadata *)AS.get<DIVariable *>(), | |||||
AL.is<DIExpression *>() ? (Metadata *)AL.get<DIExpression *>() | |||||
: (Metadata *)AL.get<DIVariable *>(), | |||||
RK.is<DIExpression *>() ? (Metadata *)RK.get<DIExpression *>() | |||||
: (Metadata *)RK.get<DIVariable *>()); | |||||
trackIfUnresolved(R); | trackIfUnresolved(R); | ||||
return R; | return R; | ||||
} | } | ||||
DICompositeType *DIBuilder::createVectorType(uint64_t Size, | DICompositeType *DIBuilder::createVectorType(uint64_t Size, | ||||
uint32_t AlignInBits, DIType *Ty, | uint32_t AlignInBits, DIType *Ty, | ||||
DINodeArray Subscripts) { | DINodeArray Subscripts) { | ||||
auto *R = DICompositeType::get(VMContext, dwarf::DW_TAG_array_type, "", | auto *R = DICompositeType::get(VMContext, dwarf::DW_TAG_array_type, "", | ||||
▲ Show 20 Lines • Show All 504 Lines • Show Last 20 Lines |