summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-09-14 23:27:26 +0000
committerAdrian Prantl <aprantl@apple.com>2015-09-14 23:27:26 +0000
commit3abe18d21a032492ef3fdebc504f4ec4afefcd01 (patch)
tree9d9ee815c4d7f3dcb451168f1d1ed6895bbca053
parentc3c39e7154464d2325115bc9dda7b0b03dc85245 (diff)
downloadbcm5719-llvm-3abe18d21a032492ef3fdebc504f4ec4afefcd01.tar.gz
bcm5719-llvm-3abe18d21a032492ef3fdebc504f4ec4afefcd01.zip
dsymutil: Remove the now obsolete RelocMgr argument from cloneDIE. (NFC)
llvm-svn: 247636
-rw-r--r--llvm/tools/dsymutil/DwarfLinker.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/llvm/tools/dsymutil/DwarfLinker.cpp b/llvm/tools/dsymutil/DwarfLinker.cpp
index 0786b5d8ca5..6574a479792 100644
--- a/llvm/tools/dsymutil/DwarfLinker.cpp
+++ b/llvm/tools/dsymutil/DwarfLinker.cpp
@@ -1242,8 +1242,7 @@ private:
/// applied to the entry point of the function to get the linked address.
///
/// \returns the root of the cloned tree or null if nothing was selected.
- DIE *cloneDIE(RelocationManager &RelocMgr,
- const DWARFDebugInfoEntryMinimal &InputDIE, CompileUnit &U,
+ DIE *cloneDIE(const DWARFDebugInfoEntryMinimal &InputDIE, CompileUnit &U,
int64_t PCOffset, uint32_t OutOffset, unsigned Flags);
/// Construct the output DIE tree by cloning the DIEs we
@@ -2564,8 +2563,8 @@ shouldSkipAttribute(DWARFAbbreviationDeclaration::AttributeSpec AttrSpec,
}
DIE *DwarfLinker::DIECloner::cloneDIE(
- RelocationManager &RelocMgr, const DWARFDebugInfoEntryMinimal &InputDIE,
- CompileUnit &Unit, int64_t PCOffset, uint32_t OutOffset, unsigned Flags) {
+ const DWARFDebugInfoEntryMinimal &InputDIE, CompileUnit &Unit,
+ int64_t PCOffset, uint32_t OutOffset, unsigned Flags) {
DWARFUnit &U = Unit.getOrigUnit();
unsigned Idx = U.getDIEIndex(&InputDIE);
CompileUnit::DIEInfo &Info = Unit.getInfo(Idx);
@@ -2703,8 +2702,7 @@ DIE *DwarfLinker::DIECloner::cloneDIE(
// Recursively clone children.
for (auto *Child = InputDIE.getFirstChild(); Child && !Child->isNULL();
Child = Child->getSibling()) {
- if (DIE *Clone =
- cloneDIE(RelocMgr, *Child, Unit, PCOffset, OutOffset, Flags)) {
+ if (DIE *Clone = cloneDIE(*Child, Unit, PCOffset, OutOffset, Flags)) {
Die->addChild(Clone);
OutOffset = Clone->getOffset() + Clone->getSize();
}
@@ -3080,8 +3078,8 @@ void DwarfLinker::DIECloner::cloneAllCompileUnits(
for (auto &CurrentUnit : CompileUnits) {
const auto *InputDIE = CurrentUnit.getOrigUnit().getUnitDIE();
CurrentUnit.setStartOffset(Linker.OutputDebugInfoSize);
- DIE *OutputDIE = cloneDIE(RelocMgr, *InputDIE, CurrentUnit,
- 0 /* PC offset */, 11 /* Unit Header size */, 0);
+ DIE *OutputDIE = cloneDIE(*InputDIE, CurrentUnit, 0 /* PC offset */,
+ 11 /* Unit Header size */, 0);
CurrentUnit.setOutputUnitDIE(OutputDIE);
Linker.OutputDebugInfoSize = CurrentUnit.computeNextUnitOffset();
if (Linker.Options.NoOutput)
OpenPOWER on IntegriCloud