Skip to content

Commit

Permalink
Inline a small function. NFC.
Browse files Browse the repository at this point in the history
llvm-svn: 299593
  • Loading branch information
rui314 committed Apr 5, 2017
1 parent 6bd3822 commit 9f12585
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lld/ELF/Writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ template <class ELFT> void Writer<ELFT>::removeEmptyPTLoad() {
Phdrs.erase(I, Phdrs.end());
}

static uint64_t getOutputFlags(InputSectionBase *S) {
return S->Flags & ~(uint64_t)(SHF_GROUP | SHF_COMPRESSED);
}

// This function scans over the input sections and creates mergeable
// synthetic sections. It removes MergeInputSections from array and
// adds new synthetic ones. Each synthetic section is added to the
Expand All @@ -169,7 +165,7 @@ static void combineMergableSections() {
continue;

StringRef OutsecName = getOutputSectionName(MS->Name);
uint64_t Flags = getOutputFlags(MS);
uint64_t Flags = MS->Flags & ~(uint64_t)(SHF_GROUP | SHF_COMPRESSED);
uint32_t Alignment = std::max<uint32_t>(MS->Alignment, MS->Entsize);

auto I =
Expand Down

0 comments on commit 9f12585

Please sign in to comment.