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 | 0f77fe5ea64d19a014c1ce7de77f5738d390fd9c (patch) | |
tree | d7990aa03c171b6a3b9ca89616e0c58bf11e1162 /lib | |
parent | c548428c5d7328592f4db6f6cd815af18b3152a3 (diff) |
Work around for some problems with templates.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30715 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/DwarfWriter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp index 0921cc5c64..32079f2200 100644 --- a/lib/CodeGen/DwarfWriter.cpp +++ b/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"); |