mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
Untabify and move a function near similar functions dealing with struct
types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159801 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -388,11 +388,11 @@ DIType DIBuilder::createObjCIVar(StringRef Name,
|
|||||||
/// createObjCProperty - Create debugging information entry for Objective-C
|
/// createObjCProperty - Create debugging information entry for Objective-C
|
||||||
/// property.
|
/// property.
|
||||||
DIObjCProperty DIBuilder::createObjCProperty(StringRef Name,
|
DIObjCProperty DIBuilder::createObjCProperty(StringRef Name,
|
||||||
DIFile File, unsigned LineNumber,
|
DIFile File, unsigned LineNumber,
|
||||||
StringRef GetterName,
|
StringRef GetterName,
|
||||||
StringRef SetterName,
|
StringRef SetterName,
|
||||||
unsigned PropertyAttributes,
|
unsigned PropertyAttributes,
|
||||||
DIType Ty) {
|
DIType Ty) {
|
||||||
Value *Elts[] = {
|
Value *Elts[] = {
|
||||||
GetTagConstant(VMContext, dwarf::DW_TAG_APPLE_property),
|
GetTagConstant(VMContext, dwarf::DW_TAG_APPLE_property),
|
||||||
MDString::get(VMContext, Name),
|
MDString::get(VMContext, Name),
|
||||||
@ -406,33 +406,6 @@ DIObjCProperty DIBuilder::createObjCProperty(StringRef Name,
|
|||||||
return DIObjCProperty(MDNode::get(VMContext, Elts));
|
return DIObjCProperty(MDNode::get(VMContext, Elts));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// createClassType - Create debugging information entry for a class.
|
|
||||||
DIType DIBuilder::createClassType(DIDescriptor Context, StringRef Name,
|
|
||||||
DIFile File, unsigned LineNumber,
|
|
||||||
uint64_t SizeInBits, uint64_t AlignInBits,
|
|
||||||
uint64_t OffsetInBits, unsigned Flags,
|
|
||||||
DIType DerivedFrom, DIArray Elements,
|
|
||||||
MDNode *VTableHolder, MDNode *TemplateParams) {
|
|
||||||
// TAG_class_type is encoded in DICompositeType format.
|
|
||||||
Value *Elts[] = {
|
|
||||||
GetTagConstant(VMContext, dwarf::DW_TAG_class_type),
|
|
||||||
getNonCompileUnitScope(Context),
|
|
||||||
MDString::get(VMContext, Name),
|
|
||||||
File,
|
|
||||||
ConstantInt::get(Type::getInt32Ty(VMContext), LineNumber),
|
|
||||||
ConstantInt::get(Type::getInt64Ty(VMContext), SizeInBits),
|
|
||||||
ConstantInt::get(Type::getInt64Ty(VMContext), AlignInBits),
|
|
||||||
ConstantInt::get(Type::getInt32Ty(VMContext), OffsetInBits),
|
|
||||||
ConstantInt::get(Type::getInt32Ty(VMContext), Flags),
|
|
||||||
DerivedFrom,
|
|
||||||
Elements,
|
|
||||||
ConstantInt::get(Type::getInt32Ty(VMContext), 0),
|
|
||||||
VTableHolder,
|
|
||||||
TemplateParams
|
|
||||||
};
|
|
||||||
return DIType(MDNode::get(VMContext, Elts));
|
|
||||||
}
|
|
||||||
|
|
||||||
/// createTemplateTypeParameter - Create debugging information for template
|
/// createTemplateTypeParameter - Create debugging information for template
|
||||||
/// type parameter.
|
/// type parameter.
|
||||||
DITemplateTypeParameter
|
DITemplateTypeParameter
|
||||||
@ -471,6 +444,34 @@ DIBuilder::createTemplateValueParameter(DIDescriptor Context, StringRef Name,
|
|||||||
return DITemplateValueParameter(MDNode::get(VMContext, Elts));
|
return DITemplateValueParameter(MDNode::get(VMContext, Elts));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// createClassType - Create debugging information entry for a class.
|
||||||
|
DIType DIBuilder::createClassType(DIDescriptor Context, StringRef Name,
|
||||||
|
DIFile File, unsigned LineNumber,
|
||||||
|
uint64_t SizeInBits, uint64_t AlignInBits,
|
||||||
|
uint64_t OffsetInBits, unsigned Flags,
|
||||||
|
DIType DerivedFrom, DIArray Elements,
|
||||||
|
MDNode *VTableHolder,
|
||||||
|
MDNode *TemplateParams) {
|
||||||
|
// TAG_class_type is encoded in DICompositeType format.
|
||||||
|
Value *Elts[] = {
|
||||||
|
GetTagConstant(VMContext, dwarf::DW_TAG_class_type),
|
||||||
|
getNonCompileUnitScope(Context),
|
||||||
|
MDString::get(VMContext, Name),
|
||||||
|
File,
|
||||||
|
ConstantInt::get(Type::getInt32Ty(VMContext), LineNumber),
|
||||||
|
ConstantInt::get(Type::getInt64Ty(VMContext), SizeInBits),
|
||||||
|
ConstantInt::get(Type::getInt64Ty(VMContext), AlignInBits),
|
||||||
|
ConstantInt::get(Type::getInt32Ty(VMContext), OffsetInBits),
|
||||||
|
ConstantInt::get(Type::getInt32Ty(VMContext), Flags),
|
||||||
|
DerivedFrom,
|
||||||
|
Elements,
|
||||||
|
ConstantInt::get(Type::getInt32Ty(VMContext), 0),
|
||||||
|
VTableHolder,
|
||||||
|
TemplateParams
|
||||||
|
};
|
||||||
|
return DIType(MDNode::get(VMContext, Elts));
|
||||||
|
}
|
||||||
|
|
||||||
/// createStructType - Create debugging information entry for a struct.
|
/// createStructType - Create debugging information entry for a struct.
|
||||||
DIType DIBuilder::createStructType(DIDescriptor Context, StringRef Name,
|
DIType DIBuilder::createStructType(DIDescriptor Context, StringRef Name,
|
||||||
DIFile File, unsigned LineNumber,
|
DIFile File, unsigned LineNumber,
|
||||||
|
Reference in New Issue
Block a user