mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Debug Info IR: Switch DIObjCProperty to use DITypeRef.
This is a prerequisite for turning on ODR type uniquing for ObjC++. rdar://problem/21377883 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239780 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -327,7 +327,8 @@ DIBuilder::createObjCProperty(StringRef Name, DIFile *File, unsigned LineNumber,
|
||||
StringRef GetterName, StringRef SetterName,
|
||||
unsigned PropertyAttributes, DIType *Ty) {
|
||||
return DIObjCProperty::get(VMContext, Name, File, LineNumber, GetterName,
|
||||
SetterName, PropertyAttributes, Ty);
|
||||
SetterName, PropertyAttributes,
|
||||
DITypeRef::get(Ty));
|
||||
}
|
||||
|
||||
DITemplateTypeParameter *
|
||||
|
@@ -1086,7 +1086,7 @@ void Verifier::visitDIExpression(const DIExpression &N) {
|
||||
void Verifier::visitDIObjCProperty(const DIObjCProperty &N) {
|
||||
Assert(N.getTag() == dwarf::DW_TAG_APPLE_property, "invalid tag", &N);
|
||||
if (auto *T = N.getRawType())
|
||||
Assert(isa<DIType>(T), "invalid type ref", &N, T);
|
||||
Assert(isTypeRef(N, T), "invalid type ref", &N, T);
|
||||
if (auto *F = N.getRawFile())
|
||||
Assert(isa<DIFile>(F), "invalid file", &N, F);
|
||||
}
|
||||
|
Reference in New Issue
Block a user