forked from OSchip/llvm-project
Initialize members not by assignment but by the member initializer list.
llvm-svn: 316876
This commit is contained in:
parent
601ae238b7
commit
da4d26dfa3
|
@ -91,11 +91,9 @@ protected:
|
||||||
SectionBase(Kind SectionKind, StringRef Name, uint64_t Flags,
|
SectionBase(Kind SectionKind, StringRef Name, uint64_t Flags,
|
||||||
uint64_t Entsize, uint64_t Alignment, uint32_t Type,
|
uint64_t Entsize, uint64_t Alignment, uint32_t Type,
|
||||||
uint32_t Info, uint32_t Link)
|
uint32_t Info, uint32_t Link)
|
||||||
: Name(Name), SectionKind(SectionKind), Alignment(Alignment),
|
: Name(Name), SectionKind(SectionKind), Live(false), Assigned(false),
|
||||||
Flags(Flags), Entsize(Entsize), Type(Type), Link(Link), Info(Info) {
|
Alignment(Alignment), Flags(Flags), Entsize(Entsize), Type(Type),
|
||||||
Live = false;
|
Link(Link), Info(Info) {}
|
||||||
Assigned = false;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// This corresponds to a section of an input file.
|
// This corresponds to a section of an input file.
|
||||||
|
@ -105,10 +103,7 @@ public:
|
||||||
: SectionBase(Regular, "", /*Flags*/ 0, /*Entsize*/ 0, /*Alignment*/ 0,
|
: SectionBase(Regular, "", /*Flags*/ 0, /*Entsize*/ 0, /*Alignment*/ 0,
|
||||||
/*Type*/ 0,
|
/*Type*/ 0,
|
||||||
/*Info*/ 0, /*Link*/ 0),
|
/*Info*/ 0, /*Link*/ 0),
|
||||||
Repl(this) {
|
NumRelocations(0), AreRelocsRela(false), Repl(this) {}
|
||||||
NumRelocations = 0;
|
|
||||||
AreRelocsRela = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
template <class ELFT>
|
template <class ELFT>
|
||||||
InputSectionBase(ObjFile<ELFT> *File, const typename ELFT::Shdr *Header,
|
InputSectionBase(ObjFile<ELFT> *File, const typename ELFT::Shdr *Header,
|
||||||
|
|
Loading…
Reference in New Issue