diff options
author | Devang Patel <dpatel@apple.com> | 2011-05-12 19:07:41 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-05-12 19:07:41 +0000 |
commit | 36882c8f24c72d844a9079b73332ec17aa2d170f (patch) | |
tree | 8484e6b8db24e2bd60dae436f238029391cb1cf6 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 2409e7843b714c83570c537a12f41fbe99c2e165 (diff) | |
download | bcm5719-llvm-36882c8f24c72d844a9079b73332ec17aa2d170f.tar.gz bcm5719-llvm-36882c8f24c72d844a9079b73332ec17aa2d170f.zip |
Use DW_AT_APPLE_objc_class_extension attribute to identify interfaces that represent class extension.
Radar 9423077.
llvm-svn: 131239
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 3c411f4ffed..3519cd1f385 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1241,9 +1241,14 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty, uint64_t Size = CGM.getContext().getTypeSize(Ty); uint64_t Align = CGM.getContext().getTypeAlign(Ty); + unsigned Flags = 0; + if (ID->getFirstClassExtension() || + (ID->getImplementation() && !ID->getImplementation()->ivar_empty())) + Flags |= llvm::DIDescriptor::FlagObjcClassExtension; + llvm::DIType RealDecl = DBuilder.createStructType(Unit, ID->getName(), DefUnit, - Line, Size, Align, 0, + Line, Size, Align, Flags, Elements, RuntimeLang); // Now that we have a real decl for the struct, replace anything using the |