diff options
author | Devang Patel <dpatel@apple.com> | 2011-05-12 21:14:54 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-05-12 21:14:54 +0000 |
commit | 70d77d144b34b5ca3bc307ec8ef384525a530446 (patch) | |
tree | 1003f97d8be5b4aaa01711f358c530181152b8fd /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 43054e6159cd9e4de024abbe92030986fa59deaa (diff) | |
download | bcm5719-llvm-70d77d144b34b5ca3bc307ec8ef384525a530446.tar.gz bcm5719-llvm-70d77d144b34b5ca3bc307ec8ef384525a530446.zip |
Do not add AT_APPLE_objc_class_extension attribute if @implementation is not seen.
llvm-svn: 131242
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 3519cd1f385..6def71fe546 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1242,8 +1242,7 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty, uint64_t Align = CGM.getContext().getTypeAlign(Ty); unsigned Flags = 0; - if (ID->getFirstClassExtension() || - (ID->getImplementation() && !ID->getImplementation()->ivar_empty())) + if (ID->getImplementation()) Flags |= llvm::DIDescriptor::FlagObjcClassExtension; llvm::DIType RealDecl = |