[lld] r308939 - Make a function static. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 24 16:55:33 PDT 2017
Author: rafael
Date: Mon Jul 24 16:55:33 2017
New Revision: 308939
URL: http://llvm.org/viewvc/llvm-project?rev=308939&view=rev
Log:
Make a function static. NFC.
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=308939&r1=308938&r2=308939&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Mon Jul 24 16:55:33 2017
@@ -524,7 +524,7 @@ template <class ELFT> void Writer<ELFT>:
//
// 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;
Modified: lld/trunk/ELF/Writer.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.h?rev=308939&r1=308938&r2=308939&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.h (original)
+++ lld/trunk/ELF/Writer.h Mon Jul 24 16:55:33 2017
@@ -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
More information about the llvm-commits
mailing list