[lld] r325038 - Fix coding style error.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 13 10:40:52 PST 2018
Author: ruiu
Date: Tue Feb 13 10:40:52 2018
New Revision: 325038
URL: http://llvm.org/viewvc/llvm-project?rev=325038&view=rev
Log:
Fix coding style error.
Modified:
lld/trunk/ELF/ICF.cpp
Modified: lld/trunk/ELF/ICF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/ICF.cpp?rev=325038&r1=325037&r2=325038&view=diff
==============================================================================
--- lld/trunk/ELF/ICF.cpp (original)
+++ lld/trunk/ELF/ICF.cpp Tue Feb 13 10:40:52 2018
@@ -391,7 +391,7 @@ void ICF<ELFT>::forEachClass(std::functi
++Cnt;
}
-static void Print(const Twine &Prefix, InputSection *S) {
+static void print(const Twine &Prefix, InputSection *S) {
if (!Config->PrintIcfSections)
return;
std::string File = S->File ? S->File->getName() : "<internal>";
@@ -435,9 +435,9 @@ template <class ELFT> void ICF<ELFT>::ru
forEachClassRange(0, Sections.size(), [&](size_t Begin, size_t End) {
if (End - Begin == 1)
return;
- Print("selected", Sections[Begin]);
+ print("selected", Sections[Begin]);
for (size_t I = Begin + 1; I < End; ++I) {
- Print(" removing identical", Sections[I]);
+ print(" removing identical", Sections[I]);
Sections[Begin]->replace(Sections[I]);
}
});
More information about the llvm-commits
mailing list