diff options
author | Eric Christopher <echristo@apple.com> | 2012-05-23 00:09:47 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-05-23 00:09:47 +0000 |
commit | a91af14b8d61d070bf9c2935167ebacbeb9f3eee (patch) | |
tree | 47de9712e69f09561c15e2208b71209e2a5e01d3 /clang/lib/CodeGen | |
parent | c49643586b90d8c796851e28616a48bb48c9a0cc (diff) | |
download | bcm5719-llvm-a91af14b8d61d070bf9c2935167ebacbeb9f3eee.tar.gz bcm5719-llvm-a91af14b8d61d070bf9c2935167ebacbeb9f3eee.zip |
Emit C++11 enum class information if it exists.
Part of rdar://11496790
llvm-svn: 157304
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 1df32d85cc5..3899604d75f 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1586,9 +1586,12 @@ llvm::DIType CGDebugInfo::CreateEnumType(const EnumDecl *ED) { } llvm::DIDescriptor EnumContext = getContextDescriptor(cast<Decl>(ED->getDeclContext())); + llvm::DIType ClassTy = ED->isScopedUsingClassTag() ? + getOrCreateType(ED->getIntegerType(), DefUnit) : llvm::DIType(); llvm::DIType DbgTy = DBuilder.createEnumerationType(EnumContext, ED->getName(), DefUnit, Line, - Size, Align, EltArray); + Size, Align, EltArray, + ClassTy); return DbgTy; } |