mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
Use assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75540 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
070a981ab7
commit
d84b41615e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user