summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/DwarfWriter.cpp
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-10-04 01:43:13 +0000
committerJim Laskey <jlaskey@mac.com>2006-10-04 01:43:13 +0000
commit66b0b55816b44fe8b7637db3d22c8c1cd38d1ed4 (patch)
tree642969bf364ecc499a2291384faed8123afdeef4 /llvm/lib/CodeGen/DwarfWriter.cpp
parent5d9fd977d3674aa3cebbe1565277427dd469a91b (diff)
downloadbcm5719-llvm-66b0b55816b44fe8b7637db3d22c8c1cd38d1ed4.tar.gz
bcm5719-llvm-66b0b55816b44fe8b7637db3d22c8c1cd38d1ed4.zip
Work around for some problems with templates.
llvm-svn: 30715
Diffstat (limited to 'llvm/lib/CodeGen/DwarfWriter.cpp')
-rw-r--r--llvm/lib/CodeGen/DwarfWriter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp
index 0921cc5c647..32079f22006 100644
--- a/llvm/lib/CodeGen/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/DwarfWriter.cpp
@@ -1526,6 +1526,12 @@ DIE *DwarfWriter::NewType(DIE *Context, TypeDesc *TyDesc, CompileUnit *Unit) {
}
default: break;
}
+ } else if (SubprogramDesc *SubprogramTy = dyn_cast<SubprogramDesc>(TyDesc)) {
+ Slot = Ty = new DIE(DW_TAG_pointer_type);
+ Ty->AddUInt(DW_AT_byte_size, 0, TAI->getAddressSize());
+ Ty->AddString(DW_AT_name, DW_FORM_string, SubprogramTy->getName());
+ Context->AddChild(Ty);
+ return Slot;
}
assert(Ty && "Type not supported yet");
OpenPOWER on IntegriCloud