aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-06-01 00:22:57 +0000
committerEric Christopher <echristo@apple.com>2012-06-01 00:22:57 +0000
commit5a2eff85d185ad94b6272a6f6c869496d8c23ced (patch)
treebcebfaed579926b558170e74ff952860ec2a1c55 /lib/CodeGen/CGDebugInfo.cpp
parent684190b8dbe5258f4708ffbd816b8c5ee5b3502d (diff)
Support C++11 enum forward declarations.
Part of rdar://11570854 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 3899604d75..e8791751f5 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -1588,10 +1588,11 @@ llvm::DIType CGDebugInfo::CreateEnumType(const EnumDecl *ED) {
getContextDescriptor(cast<Decl>(ED->getDeclContext()));
llvm::DIType ClassTy = ED->isScopedUsingClassTag() ?
getOrCreateType(ED->getIntegerType(), DefUnit) : llvm::DIType();
+ unsigned Flags = !ED->isCompleteDefinition() ? llvm::DIDescriptor::FlagFwdDecl : 0;
llvm::DIType DbgTy =
DBuilder.createEnumerationType(EnumContext, ED->getName(), DefUnit, Line,
Size, Align, EltArray,
- ClassTy);
+ ClassTy, Flags);
return DbgTy;
}