[llvm] r229182 - [dsymutil] Downcase a function name.
Frederic Riss
friss at apple.com
Fri Feb 13 15:18:31 PST 2015
Author: friss
Date: Fri Feb 13 17:18:31 2015
New Revision: 229182
URL: http://llvm.org/viewvc/llvm-project?rev=229182&view=rev
Log:
[dsymutil] Downcase a function name.
Modified:
llvm/trunk/tools/dsymutil/DwarfLinker.cpp
Modified: llvm/trunk/tools/dsymutil/DwarfLinker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/dsymutil/DwarfLinker.cpp?rev=229182&r1=229181&r2=229182&view=diff
==============================================================================
--- llvm/trunk/tools/dsymutil/DwarfLinker.cpp (original)
+++ llvm/trunk/tools/dsymutil/DwarfLinker.cpp Fri Feb 13 17:18:31 2015
@@ -188,15 +188,15 @@ void DwarfLinker::reportWarning(const Tw
/// \brief Recursive helper to gather the child->parent relationships in the
/// original compile unit.
-void GatherDIEParents(const DWARFDebugInfoEntryMinimal *DIE, unsigned ParentIdx,
- CompileUnit &CU) {
+static void gatherDIEParents(const DWARFDebugInfoEntryMinimal *DIE,
+ unsigned ParentIdx, CompileUnit &CU) {
unsigned MyIdx = CU.getOrigUnit().getDIEIndex(DIE);
CU.getInfo(MyIdx).ParentIdx = ParentIdx;
if (DIE->hasChildren())
for (auto *Child = DIE->getFirstChild(); Child && !Child->isNULL();
Child = Child->getSibling())
- GatherDIEParents(Child, MyIdx, CU);
+ gatherDIEParents(Child, MyIdx, CU);
}
void DwarfLinker::startDebugObject(DWARFContext &Dwarf) {
@@ -329,7 +329,7 @@ bool DwarfLinker::link(const DebugMap &M
CUDie->dump(outs(), CU.get(), 0);
}
Units.emplace_back(*CU);
- GatherDIEParents(CUDie, 0, Units.back());
+ gatherDIEParents(CUDie, 0, Units.back());
}
// Clean-up before starting working on the next object.
More information about the llvm-commits
mailing list