aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-05-12 21:14:54 +0000
committerDevang Patel <dpatel@apple.com>2011-05-12 21:14:54 +0000
commitf568b6459dd6df59b809a798cb198b4438c13abe (patch)
treec718f3c1558e9af82ea7e419b0c31efb2201a1bd /lib/CodeGen/CGDebugInfo.cpp
parenta55e68b7f961d6ef4551c9be9ac18a1e25c7c927 (diff)
Do not add AT_APPLE_objc_class_extension attribute if @implementation is not seen.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131242 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 3519cd1f38..6def71fe54 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/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 =