summaryrefslogtreecommitdiff
path: root/lld/ELF/Writer.h
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-07-25 22:26:28 +0000
committerRui Ueyama <ruiu@google.com>2016-07-25 22:26:28 +0000
commitf77c62295c18635f190ebee770e5260afa7ee11d (patch)
treeb4a8fc29fc6656f7db4031f4c10e2060482a6f2c /lld/ELF/Writer.h
parenta5f64a29e8efbb276f3e4cb0e9f5be384456ea0e (diff)
Do not pass InputFile to reportDiscarded().
Because the file from which an input section is created can be obtained using getFile().
Diffstat (limited to 'lld/ELF/Writer.h')
-rw-r--r--lld/ELF/Writer.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lld/ELF/Writer.h b/lld/ELF/Writer.h
index 1c451ec66c7..2e3982957a1 100644
--- a/lld/ELF/Writer.h
+++ b/lld/ELF/Writer.h
@@ -46,9 +46,7 @@ struct PhdrEntry {
template <class ELFT>
llvm::StringRef getOutputSectionName(InputSectionBase<ELFT> *S);
-template <class ELFT>
-void reportDiscarded(InputSectionBase<ELFT> *IS,
- const std::unique_ptr<elf::ObjectFile<ELFT>> &File);
+template <class ELFT> void reportDiscarded(InputSectionBase<ELFT> *IS);
}
}