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.
llvm-svn: 265137
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 9525bdc..5f47499 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -28,6 +28,10 @@
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 @@
};
} // 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;