summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/Writer.cpp6
-rw-r--r--lld/ELF/Writer.h2
2 files changed, 1 insertions, 7 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 1f31f02eed8..af1eff60b8a 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -794,12 +794,6 @@ static bool compareSections(const OutputSection *A, const OutputSection *B) {
return compareSectionsNonScript(A, B);
}
-// Program header entry
-PhdrEntry::PhdrEntry(unsigned Type, unsigned Flags) {
- p_type = Type;
- p_flags = Flags;
-}
-
void PhdrEntry::add(OutputSection *Sec) {
Last = Sec;
if (!First)
diff --git a/lld/ELF/Writer.h b/lld/ELF/Writer.h
index 17fbda394a2..e935b6419de 100644
--- a/lld/ELF/Writer.h
+++ b/lld/ELF/Writer.h
@@ -30,7 +30,7 @@ bool isRelroSection(const OutputSection *Sec);
// Each contains type, access flags and range of output sections that will be
// placed in it.
struct PhdrEntry {
- PhdrEntry(unsigned Type, unsigned Flags);
+ PhdrEntry(unsigned Type, unsigned Flags) : p_type(Type), p_flags(Flags) {}
void add(OutputSection *Sec);
uint64_t p_paddr = 0;
OpenPOWER on IntegriCloud