[lld] r295448 - Add static. NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 17 06:32:15 PST 2017
Author: rafael
Date: Fri Feb 17 08:32:15 2017
New Revision: 295448
URL: http://llvm.org/viewvc/llvm-project?rev=295448&view=rev
Log:
Add 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=295448&r1=295447&r2=295448&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Fri Feb 17 08:32:15 2017
@@ -1520,7 +1520,7 @@ static uintX_t getFileAlignment(uintX_t
}
template <class ELFT, class uintX_t>
-uintX_t setOffset(OutputSectionBase *Sec, uintX_t Off) {
+static uintX_t setOffset(OutputSectionBase *Sec, uintX_t Off) {
if (Sec->Type == SHT_NOBITS) {
Sec->Offset = Off;
return Off;
More information about the llvm-commits
mailing list