[lld] r197007 - Use "static" instead of anonymous namespace.
Rui Ueyama
ruiu at google.com
Tue Dec 10 20:30:16 PST 2013
Author: ruiu
Date: Tue Dec 10 22:30:15 2013
New Revision: 197007
URL: http://llvm.org/viewvc/llvm-project?rev=197007&view=rev
Log:
Use "static" instead of anonymous namespace.
Modified:
lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
Modified: lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp?rev=197007&r1=197006&r2=197007&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp Tue Dec 10 22:30:15 2013
@@ -51,16 +51,16 @@ using llvm::support::ulittle32_t;
namespace lld {
namespace pecoff {
-namespace {
-class SectionChunk;
-
// Page size of x86 processor. Some data needs to be aligned at page boundary
// when loaded into memory.
-const int PAGE_SIZE = 4096;
+static const int PAGE_SIZE = 4096;
// Disk sector size. Some data needs to be aligned at disk sector boundary in
// file.
-const int SECTOR_SIZE = 512;
+static const int SECTOR_SIZE = 512;
+
+namespace {
+class SectionChunk;
/// A Chunk is an abstrace contiguous range in an output file.
class Chunk {
More information about the llvm-commits
mailing list