diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-07-24 23:55:33 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-07-24 23:55:33 +0000 |
| commit | dc49af9d32e72cd60a8d8eb1adcca8ea328631ae (patch) | |
| tree | 89cb59d4acc700b0f95d2aef82e1a18ed8171eab | |
| parent | a43acdc4d48ed9c73662646bb44cd57bbf4a7a74 (diff) | |
| download | bcm5719-llvm-dc49af9d32e72cd60a8d8eb1adcca8ea328631ae.tar.gz bcm5719-llvm-dc49af9d32e72cd60a8d8eb1adcca8ea328631ae.zip | |
Make a function static. NFC.
llvm-svn: 308939
| -rw-r--r-- | lld/ELF/Writer.cpp | 2 | ||||
| -rw-r--r-- | lld/ELF/Writer.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 6f75efb482e..81748d588bd 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -524,7 +524,7 @@ template <class ELFT> void Writer<ELFT>::addSectionSymbols() { // // This function returns true if a section needs to be put into a // PT_GNU_RELRO segment. -bool elf::isRelroSection(const OutputSection *Sec) { +static bool isRelroSection(const OutputSection *Sec) { if (!Config->ZRelro) return false; diff --git a/lld/ELF/Writer.h b/lld/ELF/Writer.h index 7fa56bea1c3..e430a0d3865 100644 --- a/lld/ELF/Writer.h +++ b/lld/ELF/Writer.h @@ -24,7 +24,6 @@ template <class ELFT> class ObjectFile; template <class ELFT> class SymbolTable; template <class ELFT> void writeResult(); template <class ELFT> void markLive(); -bool isRelroSection(const OutputSection *Sec); // This describes a program header entry. // Each contains type, access flags and range of output sections that will be |

