diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-10-04 01:43:13 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-10-04 01:43:13 +0000 |
commit | 66b0b55816b44fe8b7637db3d22c8c1cd38d1ed4 (patch) | |
tree | 642969bf364ecc499a2291384faed8123afdeef4 /llvm/lib/CodeGen/DwarfWriter.cpp | |
parent | 5d9fd977d3674aa3cebbe1565277427dd469a91b (diff) | |
download | bcm5719-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.cpp | 6 |
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"); |