mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-27 17:31:33 +00:00
[dsymutil] Downcase a function name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229182 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5bdb2cda7f
commit
443abd7905
@ -188,15 +188,15 @@ void DwarfLinker::reportWarning(const Twine &Warning, const DWARFUnit *Unit,
|
|||||||
|
|
||||||
/// \brief Recursive helper to gather the child->parent relationships in the
|
/// \brief Recursive helper to gather the child->parent relationships in the
|
||||||
/// original compile unit.
|
/// original compile unit.
|
||||||
void GatherDIEParents(const DWARFDebugInfoEntryMinimal *DIE, unsigned ParentIdx,
|
static void gatherDIEParents(const DWARFDebugInfoEntryMinimal *DIE,
|
||||||
CompileUnit &CU) {
|
unsigned ParentIdx, CompileUnit &CU) {
|
||||||
unsigned MyIdx = CU.getOrigUnit().getDIEIndex(DIE);
|
unsigned MyIdx = CU.getOrigUnit().getDIEIndex(DIE);
|
||||||
CU.getInfo(MyIdx).ParentIdx = ParentIdx;
|
CU.getInfo(MyIdx).ParentIdx = ParentIdx;
|
||||||
|
|
||||||
if (DIE->hasChildren())
|
if (DIE->hasChildren())
|
||||||
for (auto *Child = DIE->getFirstChild(); Child && !Child->isNULL();
|
for (auto *Child = DIE->getFirstChild(); Child && !Child->isNULL();
|
||||||
Child = Child->getSibling())
|
Child = Child->getSibling())
|
||||||
GatherDIEParents(Child, MyIdx, CU);
|
gatherDIEParents(Child, MyIdx, CU);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DwarfLinker::startDebugObject(DWARFContext &Dwarf) {
|
void DwarfLinker::startDebugObject(DWARFContext &Dwarf) {
|
||||||
@ -329,7 +329,7 @@ bool DwarfLinker::link(const DebugMap &Map) {
|
|||||||
CUDie->dump(outs(), CU.get(), 0);
|
CUDie->dump(outs(), CU.get(), 0);
|
||||||
}
|
}
|
||||||
Units.emplace_back(*CU);
|
Units.emplace_back(*CU);
|
||||||
GatherDIEParents(CUDie, 0, Units.back());
|
gatherDIEParents(CUDie, 0, Units.back());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clean-up before starting working on the next object.
|
// Clean-up before starting working on the next object.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user