[lld] r270652 - Add `static` to a file-scope function.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue May 24 20:40:02 PDT 2016

Author: ruiu
Date: Tue May 24 22:40:02 2016
New Revision: 270652

URL: http://llvm.org/viewvc/llvm-project?rev=270652&view=rev
Add `static` to a file-scope function.


Modified: lld/trunk/ELF/Relocations.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Relocations.cpp?rev=270652&r1=270651&r2=270652&view=diff
--- lld/trunk/ELF/Relocations.cpp (original)
+++ lld/trunk/ELF/Relocations.cpp Tue May 24 22:40:02 2016
@@ -452,7 +452,7 @@ static typename ELFT::uint computeAddend
 // complicates things for the dynamic linker and means we would have to reserve
 // space for the extra PT_LOAD even if we end up not using it.
 template <class ELFT, class RelTy>
-void scanRelocs(InputSectionBase<ELFT> &C, ArrayRef<RelTy> Rels) {
+static void scanRelocs(InputSectionBase<ELFT> &C, ArrayRef<RelTy> Rels) {
   typedef typename ELFT::uint uintX_t;
   uintX_t Flags = C.getSectionHdr()->sh_flags;

More information about the llvm-commits mailing list