mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-12 01:25:10 +00:00
Add support for objc property decls according to the page at:
http://llvm.org/docs/SourceLevelDebugging.html#objcproperty including type and DECL. Expand the metadata needed accordingly. rdar://11144023 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153639 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -385,16 +385,21 @@ DIType DIBuilder::createObjCIVar(StringRef Name,
|
||||
|
||||
/// createObjCProperty - Create debugging information entry for Objective-C
|
||||
/// property.
|
||||
DIObjCProperty DIBuilder::createObjCProperty(StringRef Name,
|
||||
DIObjCProperty DIBuilder::createObjCProperty(StringRef Name,
|
||||
DIFile File, unsigned LineNumber,
|
||||
StringRef GetterName,
|
||||
StringRef SetterName,
|
||||
unsigned PropertyAttributes) {
|
||||
unsigned PropertyAttributes,
|
||||
DIType Ty) {
|
||||
Value *Elts[] = {
|
||||
GetTagConstant(VMContext, dwarf::DW_TAG_APPLE_Property),
|
||||
MDString::get(VMContext, Name),
|
||||
File,
|
||||
ConstantInt::get(Type::getInt32Ty(VMContext), LineNumber),
|
||||
MDString::get(VMContext, GetterName),
|
||||
MDString::get(VMContext, SetterName),
|
||||
ConstantInt::get(Type::getInt32Ty(VMContext), PropertyAttributes)
|
||||
ConstantInt::get(Type::getInt32Ty(VMContext), PropertyAttributes),
|
||||
Ty
|
||||
};
|
||||
return DIObjCProperty(MDNode::get(VMContext, Elts));
|
||||
}
|
||||
|
Reference in New Issue
Block a user