diff options
author | Eric Christopher <echristo@apple.com> | 2012-05-23 00:09:20 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-05-23 00:09:20 +0000 |
commit | c49643586b90d8c796851e28616a48bb48c9a0cc (patch) | |
tree | 658130f4c2a32ec682e627efed678b9dd7c87bf1 /llvm/lib/Analysis | |
parent | ebffd2e7fd08e63e345bdf27a32938de79783240 (diff) | |
download | bcm5719-llvm-c49643586b90d8c796851e28616a48bb48c9a0cc.tar.gz bcm5719-llvm-c49643586b90d8c796851e28616a48bb48c9a0cc.zip |
Add support for C++11 enum classes in llvm.
Part of rdar://11496790
llvm-svn: 157303
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r-- | llvm/lib/Analysis/DIBuilder.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DIBuilder.cpp b/llvm/lib/Analysis/DIBuilder.cpp index 0e7d5401003..d6c6147f139 100644 --- a/llvm/lib/Analysis/DIBuilder.cpp +++ b/llvm/lib/Analysis/DIBuilder.cpp @@ -548,7 +548,8 @@ DIType DIBuilder::createEnumerationType(DIDescriptor Scope, StringRef Name, DIFile File, unsigned LineNumber, uint64_t SizeInBits, uint64_t AlignInBits, - DIArray Elements) { + DIArray Elements, + DIType ClassType) { // TAG_enumeration_type is encoded in DICompositeType format. Value *Elts[] = { GetTagConstant(VMContext, dwarf::DW_TAG_enumeration_type), @@ -560,7 +561,7 @@ DIType DIBuilder::createEnumerationType(DIDescriptor Scope, StringRef Name, ConstantInt::get(Type::getInt64Ty(VMContext), AlignInBits), ConstantInt::get(Type::getInt32Ty(VMContext), 0), ConstantInt::get(Type::getInt32Ty(VMContext), 0), - NULL, + ClassType, Elements, ConstantInt::get(Type::getInt32Ty(VMContext), 0), llvm::Constant::getNullValue(Type::getInt32Ty(VMContext)), |