[lld] r303958 - Inline a trivial constructor.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu May 25 19:17:13 PDT 2017
Author: ruiu
Date: Thu May 25 21:17:13 2017
New Revision: 303958
URL: http://llvm.org/viewvc/llvm-project?rev=303958&view=rev
Log:
Inline a trivial constructor.
Modified:
lld/trunk/ELF/Writer.cpp
lld/trunk/ELF/Writer.h
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=303958&r1=303957&r2=303958&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu May 25 21:17:13 2017
@@ -794,12 +794,6 @@ static bool compareSections(const Output
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)
Modified: lld/trunk/ELF/Writer.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.h?rev=303958&r1=303957&r2=303958&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.h (original)
+++ lld/trunk/ELF/Writer.h Thu May 25 21:17:13 2017
@@ -30,7 +30,7 @@ bool isRelroSection(const OutputSection
// 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;
More information about the llvm-commits
mailing list