mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 17:24:48 +00:00
Introduce DIObjCProperty. This will be used to encode objective-c property.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149732 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -359,6 +359,22 @@ DIType DIBuilder::createObjCIVar(StringRef Name,
|
||||
return DIType(MDNode::get(VMContext, Elts));
|
||||
}
|
||||
|
||||
/// createObjCProperty - Create debugging information entry for Objective-C
|
||||
/// property.
|
||||
DIObjCProperty DIBuilder::createObjCProperty(StringRef Name,
|
||||
StringRef GetterName,
|
||||
StringRef SetterName,
|
||||
unsigned PropertyAttributes) {
|
||||
Value *Elts[] = {
|
||||
GetTagConstant(VMContext, dwarf::DW_TAG_APPLE_Property),
|
||||
MDString::get(VMContext, Name),
|
||||
MDString::get(VMContext, GetterName),
|
||||
MDString::get(VMContext, SetterName),
|
||||
ConstantInt::get(Type::getInt32Ty(VMContext), PropertyAttributes)
|
||||
};
|
||||
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,
|
||||
|
Reference in New Issue
Block a user