summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DIBuilder.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-05-19 01:36:37 +0000
committerEric Christopher <echristo@apple.com>2012-05-19 01:36:37 +0000
commitb5cf66cda2692b54f7c439d937a77b451c4d6840 (patch)
tree931f0f2a5158ce5d55c157bef8f845b86474f208 /llvm/lib/Analysis/DIBuilder.cpp
parentbc5d24999c37a1eb0b2eb98ed266f0f13f4ece6f (diff)
downloadbcm5719-llvm-b5cf66cda2692b54f7c439d937a77b451c4d6840.tar.gz
bcm5719-llvm-b5cf66cda2692b54f7c439d937a77b451c4d6840.zip
Actually support DW_TAG_rvalue_reference_type that we were trying
to generate out of the front end. rdar://11479676 llvm-svn: 157094
Diffstat (limited to 'llvm/lib/Analysis/DIBuilder.cpp')
-rw-r--r--llvm/lib/Analysis/DIBuilder.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/DIBuilder.cpp b/llvm/lib/Analysis/DIBuilder.cpp
index d9828331d7a..0e7d5401003 100644
--- a/llvm/lib/Analysis/DIBuilder.cpp
+++ b/llvm/lib/Analysis/DIBuilder.cpp
@@ -229,12 +229,13 @@ DIType DIBuilder::createPointerType(DIType PointeeTy, uint64_t SizeInBits,
return DIType(MDNode::get(VMContext, Elts));
}
-/// createReferenceType - Create debugging information entry for a reference.
-DIType DIBuilder::createReferenceType(DIType RTy) {
+/// createReferenceType - Create debugging information entry for a reference
+/// type.
+DIType DIBuilder::createReferenceType(unsigned Tag, DIType RTy) {
assert(RTy.Verify() && "Unable to create reference type");
// References are encoded in DIDerivedType format.
Value *Elts[] = {
- GetTagConstant(VMContext, dwarf::DW_TAG_reference_type),
+ GetTagConstant(VMContext, Tag),
NULL, // TheCU,
NULL, // Name
NULL, // Filename
OpenPOWER on IntegriCloud