[lld] r314592 - SyntheticSections.cpp: Appease g++-4.8, s/const/constexpr/

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 30 06:40:23 PDT 2017


Author: chapuni
Date: Sat Sep 30 06:40:22 2017
New Revision: 314592

URL: http://llvm.org/viewvc/llvm-project?rev=314592&view=rev
Log:
SyntheticSections.cpp: Appease g++-4.8, s/const/constexpr/

Modified:
    lld/trunk/ELF/SyntheticSections.cpp

Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=314592&r1=314591&r2=314592&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Sat Sep 30 06:40:22 2017
@@ -49,7 +49,7 @@ using namespace llvm::support::endian;
 using namespace lld;
 using namespace lld::elf;
 
-const size_t MergeNoTailSection::NumShards;
+constexpr size_t MergeNoTailSection::NumShards;
 
 uint64_t SyntheticSection::getVA() const {
   if (OutputSection *Sec = getParent())




More information about the llvm-commits mailing list