Make helper function static. NFC.

llvm-svn: 265501
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 9ab3f78..4e6b368 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -30,7 +30,7 @@
 
 // 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.