[lld] r270387 - Make file-local function file-local. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Sun May 22 17:45:55 PDT 2016
Author: ruiu
Date: Sun May 22 19:45:54 2016
New Revision: 270387
URL: http://llvm.org/viewvc/llvm-project?rev=270387&view=rev
Log:
Make file-local function file-local. NFC.
Modified:
lld/trunk/ELF/InputSection.cpp
Modified: lld/trunk/ELF/InputSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=270387&r1=270386&r2=270387&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Sun May 22 19:45:54 2016
@@ -470,7 +470,8 @@ static size_t findNull(ArrayRef<uint8_t>
// Split SHF_STRINGS section. Such section is a sequence of
// null-terminated strings.
-std::vector<SectionPiece> splitStrings(ArrayRef<uint8_t> Data, size_t EntSize) {
+static std::vector<SectionPiece> splitStrings(ArrayRef<uint8_t> Data,
+ size_t EntSize) {
std::vector<SectionPiece> V;
size_t Off = 0;
while (!Data.empty()) {
@@ -487,8 +488,8 @@ std::vector<SectionPiece> splitStrings(A
// Split non-SHF_STRINGS section. Such section is a sequence of
// fixed size records.
-std::vector<SectionPiece>
-splitNonStrings(ArrayRef<uint8_t> Data, size_t EntSize) {
+static std::vector<SectionPiece> splitNonStrings(ArrayRef<uint8_t> Data,
+ size_t EntSize) {
std::vector<SectionPiece> V;
size_t Size = Data.size();
assert((Size % EntSize) == 0);
More information about the llvm-commits
mailing list