mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-06 11:19:09 +00:00
Work around for some problems with templates.
llvm-svn: 30715
This commit is contained in:
parent
494e8e6971
commit
b2dbdc5a38
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user