mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-17 21:07:52 +00:00
Inline a trivial constructor.
llvm-svn: 303958
This commit is contained in:
parent
0150333a3c
commit
9e6f268054
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user