summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DIBuilder.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-06-01 00:22:32 +0000
committerEric Christopher <echristo@apple.com>2012-06-01 00:22:32 +0000
commit1cf3338bb4c0f35f6031b7e910867014f26957f3 (patch)
tree616786cddeaf5419de02a680acc3270ad0e506d4 /llvm/lib/Analysis/DIBuilder.cpp
parent273c7c40b2d9504cd1f282ae2176592f0510eca7 (diff)
downloadbcm5719-llvm-1cf3338bb4c0f35f6031b7e910867014f26957f3.tar.gz
bcm5719-llvm-1cf3338bb4c0f35f6031b7e910867014f26957f3.zip
Add support for enum forward declarations.
Part of rdar://11570854 llvm-svn: 157786
Diffstat (limited to 'llvm/lib/Analysis/DIBuilder.cpp')
-rw-r--r--llvm/lib/Analysis/DIBuilder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DIBuilder.cpp b/llvm/lib/Analysis/DIBuilder.cpp
index d6c6147f139..4fe0fc26f1a 100644
--- a/llvm/lib/Analysis/DIBuilder.cpp
+++ b/llvm/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),
OpenPOWER on IntegriCloud