[lld] r185128 - [PECOFF][Writer] Use a constant instead of a magic number.
Rui Ueyama
ruiu at google.com
Thu Jun 27 20:52:41 PDT 2013
Author: ruiu
Date: Thu Jun 27 22:52:41 2013
New Revision: 185128
URL: http://llvm.org/viewvc/llvm-project?rev=185128&view=rev
Log:
[PECOFF][Writer] Use a constant instead of a magic number.
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=185128&r1=185127&r2=185128&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp Thu Jun 27 22:52:41 2013
@@ -448,7 +448,7 @@ public:
RDataSectionChunk(const File &linkedFile, SectionHeaderTableChunk *table)
: SectionChunk(table, ".rdata", characteristics) {
// The data section should be aligned to disk sector.
- _align = 512;
+ _align = SECTOR_SIZE;
// Extract executable atoms from the linked file and append them to this
// section.
@@ -478,7 +478,7 @@ public:
DataSectionChunk(const File &linkedFile, SectionHeaderTableChunk *table)
: SectionChunk(table, ".data", characteristics) {
// The data section should be aligned to disk sector.
- _align = 512;
+ _align = SECTOR_SIZE;
// Extract executable atoms from the linked file and append them to this
// section.
More information about the llvm-commits
mailing list