Inline a trivial constructor.

llvm-svn: 303958
This commit is contained in:
Rui Ueyama 2017-05-26 02:17:13 +00:00
parent 0150333a3c
commit 9e6f268054
2 changed files with 1 additions and 7 deletions

View File

@ -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)

View File

@ -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;