forked from OSchip/llvm-project
Do not add AT_APPLE_objc_class_extension attribute if @implementation is not seen.
llvm-svn: 131242
This commit is contained in:
parent
43054e6159
commit
70d77d144b
|
@ -1242,8 +1242,7 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty,
|
||||||
uint64_t Align = CGM.getContext().getTypeAlign(Ty);
|
uint64_t Align = CGM.getContext().getTypeAlign(Ty);
|
||||||
|
|
||||||
unsigned Flags = 0;
|
unsigned Flags = 0;
|
||||||
if (ID->getFirstClassExtension() ||
|
if (ID->getImplementation())
|
||||||
(ID->getImplementation() && !ID->getImplementation()->ivar_empty()))
|
|
||||||
Flags |= llvm::DIDescriptor::FlagObjcClassExtension;
|
Flags |= llvm::DIDescriptor::FlagObjcClassExtension;
|
||||||
|
|
||||||
llvm::DIType RealDecl =
|
llvm::DIType RealDecl =
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
// RUN: %clang_cc1 -fobjc-nonfragile-abi -masm-verbose -S -g %s -o - | FileCheck %s
|
||||||
|
|
||||||
|
// CHECK-NOT: AT_APPLE_objc_class_extension
|
||||||
|
|
||||||
|
@interface Foo {} @end
|
||||||
|
|
||||||
|
@interface Foo () {
|
||||||
|
int *bar;
|
||||||
|
}
|
||||||
|
@end
|
||||||
|
|
||||||
|
void bar(Foo *fptr) {}
|
Loading…
Reference in New Issue