summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-05-21 17:31:51 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-05-21 17:31:51 +0000
commitb43dfaa6c0ff5661cde472c54e711c4afebe8b27 (patch)
treebf9286b6bdb99f051059c7751dd019ff57cd0efb
parentfb2a0765118dd3e3f2bd6f6929b5cedf90735403 (diff)
downloadbcm5719-llvm-b43dfaa6c0ff5661cde472c54e711c4afebe8b27.tar.gz
bcm5719-llvm-b43dfaa6c0ff5661cde472c54e711c4afebe8b27.zip
[Dsymutil] Remove redundant argument (NFC)
The dwarf streamer already holds a copy of the link options, so there's no need to pass them as an argument. llvm-svn: 361276
-rw-r--r--llvm/tools/dsymutil/DwarfLinker.cpp6
-rw-r--r--llvm/tools/dsymutil/DwarfStreamer.cpp3
-rw-r--r--llvm/tools/dsymutil/DwarfStreamer.h3
3 files changed, 5 insertions, 7 deletions
diff --git a/llvm/tools/dsymutil/DwarfLinker.cpp b/llvm/tools/dsymutil/DwarfLinker.cpp
index ab666270aa1..79e3437a04d 100644
--- a/llvm/tools/dsymutil/DwarfLinker.cpp
+++ b/llvm/tools/dsymutil/DwarfLinker.cpp
@@ -626,7 +626,7 @@ unsigned DwarfLinker::shouldKeepVariableDIE(RelocationManager &RelocMgr,
MyInfo.InDebugMap = true;
return Flags | TF_Keep;
}
-
+
Optional<uint32_t> LocationIdx =
Abbrev->findAttributeIndex(dwarf::DW_AT_location);
if (!LocationIdx)
@@ -1820,7 +1820,7 @@ void DwarfLinker::patchLineTableForUnit(CompileUnit &Unit,
OrigDwarf.getDWARFObj(), OrigDwarf.getDWARFObj().getLineSection(),
OrigDwarf.isLittleEndian(), Unit.getOrigUnit().getAddressByteSize());
if (Options.Translator)
- return Streamer->translateLineTable(LineExtractor, StmtOffset, Options);
+ return Streamer->translateLineTable(LineExtractor, StmtOffset);
Error Err = LineTable.parse(LineExtractor, &StmtOffset, OrigDwarf,
&Unit.getOrigUnit(), DWARFContext::dumpWarning);
@@ -2845,7 +2845,7 @@ bool DwarfLinker::link(const DebugMap &Map) {
copySwiftInterfaces(ParseableSwiftInterfaces, ArchName, Options))
return error(toString(std::move(E)));
}
-
+
return Streamer->finish(Map, Options.Translator);
} // namespace dsymutil
diff --git a/llvm/tools/dsymutil/DwarfStreamer.cpp b/llvm/tools/dsymutil/DwarfStreamer.cpp
index ccc6a2c852c..f8fe379e604 100644
--- a/llvm/tools/dsymutil/DwarfStreamer.cpp
+++ b/llvm/tools/dsymutil/DwarfStreamer.cpp
@@ -584,8 +584,7 @@ void DwarfStreamer::emitLineTableForUnit(MCDwarfLineTableParams Params,
/// Copy the debug_line over to the updated binary while unobfuscating the file
/// names and directories.
-void DwarfStreamer::translateLineTable(DataExtractor Data, uint32_t Offset,
- LinkOptions &Options) {
+void DwarfStreamer::translateLineTable(DataExtractor Data, uint32_t Offset) {
MS->SwitchSection(MC->getObjectFileInfo()->getDwarfLineSection());
StringRef Contents = Data.getData();
diff --git a/llvm/tools/dsymutil/DwarfStreamer.h b/llvm/tools/dsymutil/DwarfStreamer.h
index 0b71d9f49bf..78112408297 100644
--- a/llvm/tools/dsymutil/DwarfStreamer.h
+++ b/llvm/tools/dsymutil/DwarfStreamer.h
@@ -107,8 +107,7 @@ public:
/// Copy the debug_line over to the updated binary while unobfuscating the
/// file names and directories.
- void translateLineTable(DataExtractor LineData, uint32_t Offset,
- LinkOptions &Options);
+ void translateLineTable(DataExtractor LineData, uint32_t Offset);
/// Copy over the debug sections that are not modified when updating.
void copyInvariantDebugSection(const object::ObjectFile &Obj);
OpenPOWER on IntegriCloud