diff options
author | Eric Christopher <echristo@apple.com> | 2012-06-01 00:22:32 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-06-01 00:22:32 +0000 |
commit | fc4199bf4add3422ce6470ca47bbe6bff2d70ea5 (patch) | |
tree | 038a9b569ef94510918a4be42cd9677ceb4806ea /lib/Analysis/DIBuilder.cpp | |
parent | 547d8045fbf92eef358379f6e1446e33d8a8a0b8 (diff) |
Add support for enum forward declarations.
Part of rdar://11570854
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157786 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DIBuilder.cpp')
-rw-r--r-- | lib/Analysis/DIBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/DIBuilder.cpp b/lib/Analysis/DIBuilder.cpp index d6c6147f13..4fe0fc26f1 100644 --- a/lib/Analysis/DIBuilder.cpp +++ b/lib/Analysis/DIBuilder.cpp @@ -549,7 +549,7 @@ DIType DIBuilder::createEnumerationType(DIDescriptor Scope, StringRef Name, uint64_t SizeInBits, uint64_t AlignInBits, DIArray Elements, - DIType ClassType) { + DIType ClassType, unsigned Flags) { // TAG_enumeration_type is encoded in DICompositeType format. Value *Elts[] = { GetTagConstant(VMContext, dwarf::DW_TAG_enumeration_type), @@ -560,7 +560,7 @@ DIType DIBuilder::createEnumerationType(DIDescriptor Scope, StringRef Name, ConstantInt::get(Type::getInt64Ty(VMContext), SizeInBits), ConstantInt::get(Type::getInt64Ty(VMContext), AlignInBits), ConstantInt::get(Type::getInt32Ty(VMContext), 0), - ConstantInt::get(Type::getInt32Ty(VMContext), 0), + ConstantInt::get(Type::getInt32Ty(VMContext), Flags), ClassType, Elements, ConstantInt::get(Type::getInt32Ty(VMContext), 0), |