Use assertion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75540 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2009-07-13 22:46:19 +00:00
parent 070a981ab7
commit d84b41615e

View File

@ -788,8 +788,9 @@ DIE *DwarfDebug::CreateGlobalVariableDIE(CompileUnit *DW_Unit,
GV.getLinkageName(LinkageName);
if (!LinkageName.empty()) {
Mangler *Mg = Asm->getMangler();
assert (Mg && "Unable to find Mangler!");
AddString(GVDie, dwarf::DW_AT_MIPS_linkage_name, dwarf::DW_FORM_string,
Mg ? Mg->makeNameProper(LinkageName) : LinkageName);
Mg->makeNameProper(LinkageName));
}
AddType(DW_Unit, GVDie, GV.getType());
if (!GV.isLocalToUnit())
@ -861,8 +862,9 @@ DIE *DwarfDebug::CreateSubprogramDIE(CompileUnit *DW_Unit,
if (!LinkageName.empty()) {
Mangler *Mg = Asm->getMangler();
assert (Mg && "Unable to find Mangler!");
AddString(SPDie, dwarf::DW_AT_MIPS_linkage_name, dwarf::DW_FORM_string,
Mg ? Mg->makeNameProper(LinkageName) : LinkageName);
Mg->makeNameProper(LinkageName));
}
AddSourceLine(SPDie, &SP);