[lld] r265137 - Fix linux buildbot after r265136

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 1 05:24:29 PDT 2016


Author: grimar
Date: Fri Apr  1 07:24:28 2016
New Revision: 265137

URL: http://llvm.org/viewvc/llvm-project?rev=265137&view=rev
Log:
Fix linux buildbot after r265136

http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/20138

Fix: Move method above class that uses it.
Works fine with MSVS.

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=265137&r1=265136&r2=265137&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Fri Apr  1 07:24:28 2016
@@ -28,6 +28,10 @@ using namespace llvm::object;
 using namespace lld;
 using namespace lld::elf;
 
+// Usually there are 2 dummies sections: ELF header and program header.
+// Relocatable output does not require program headers to be created.
+unsigned dummySectionsNum() { return Config->Relocatable ? 1 : 2; }
+
 namespace {
 // The writer writes a SymbolTable result to a file.
 template <class ELFT> class Writer {
@@ -124,10 +128,6 @@ private:
 };
 } // anonymous namespace
 
-// Usually there are 2 dummies sections: ELF header and program header.
-// Relocatable output does not require program headers to be created.
-unsigned dummySectionsNum() { return Config->Relocatable ? 1 : 2; }
-
 template <class ELFT> void elf::writeResult(SymbolTable<ELFT> *Symtab) {
   typedef typename ELFT::uint uintX_t;
 




More information about the llvm-commits mailing list