summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/DIBuilder.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-11-02 23:33:23 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-11-02 23:33:23 +0000
commitbc1b4e73e640c3def95996e083450779c97bf162 (patch)
treea6c5c4d4e7cad2de5df145ca8c89b9a83c56f25c /llvm/lib/VMCore/DIBuilder.cpp
parent23848f8f1d7dfb926bc9e42a47771d4ff9b01171 (diff)
downloadbcm5719-llvm-bc1b4e73e640c3def95996e083450779c97bf162.tar.gz
bcm5719-llvm-bc1b4e73e640c3def95996e083450779c97bf162.zip
Include all the fields so we can correctly emit DW_TAG_structure_type for C++ structs.
llvm-svn: 167334
Diffstat (limited to 'llvm/lib/VMCore/DIBuilder.cpp')
-rw-r--r--llvm/lib/VMCore/DIBuilder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/DIBuilder.cpp b/llvm/lib/VMCore/DIBuilder.cpp
index c331304df10..152b825523d 100644
--- a/llvm/lib/VMCore/DIBuilder.cpp
+++ b/llvm/lib/VMCore/DIBuilder.cpp
@@ -492,7 +492,8 @@ DIType DIBuilder::createStructType(DIDescriptor Context, StringRef Name,
NULL,
Elements,
ConstantInt::get(Type::getInt32Ty(VMContext), RunTimeLang),
- Constant::getNullValue(Type::getInt32Ty(VMContext))
+ ConstantInt::get(Type::getInt32Ty(VMContext), 0),
+ ConstantInt::get(Type::getInt32Ty(VMContext), 0),
};
return DIType(MDNode::get(VMContext, Elts));
}
OpenPOWER on IntegriCloud