summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DIBuilder.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-05-23 00:09:20 +0000
committerEric Christopher <echristo@apple.com>2012-05-23 00:09:20 +0000
commitc49643586b90d8c796851e28616a48bb48c9a0cc (patch)
tree658130f4c2a32ec682e627efed678b9dd7c87bf1 /llvm/lib/Analysis/DIBuilder.cpp
parentebffd2e7fd08e63e345bdf27a32938de79783240 (diff)
downloadbcm5719-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/DIBuilder.cpp')
-rw-r--r--llvm/lib/Analysis/DIBuilder.cpp5
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)),
OpenPOWER on IntegriCloud