[lld] r265501 - Make helper function static. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 5 18:30:49 PDT 2016


Author: rafael
Date: Tue Apr  5 20:30:49 2016
New Revision: 265501

URL: http://llvm.org/viewvc/llvm-project?rev=265501&view=rev
Log:
Make helper function static. NFC.

Modified:
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=265501&r1=265500&r2=265501&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Tue Apr  5 20:30:49 2016
@@ -30,7 +30,7 @@ using namespace lld::elf;
 
 // Usually there are 2 dummies sections: ELF header and program header.
 // Relocatable output does not require program headers to be created.
-unsigned dummySectionsNum() { return Config->Relocatable ? 1 : 2; }
+static unsigned dummySectionsNum() { return Config->Relocatable ? 1 : 2; }
 
 namespace {
 // The writer writes a SymbolTable result to a file.




More information about the llvm-commits mailing list