188 changes: 104 additions & 84 deletions lld/COFF/Writer.cpp

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions lld/COFF/Writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ class OutputSection {
void insertChunkAtStart(Chunk *c);
void merge(OutputSection *other);
void setPermissions(uint32_t c);
uint64_t getRVA() { return header.VirtualAddress; }
uint64_t getFileOff() { return header.PointerToRawData; }
void writeHeaderTo(uint8_t *buf);
uint64_t getRVA() const { return header.VirtualAddress; }
uint64_t getFileOff() const { return header.PointerToRawData; }
void writeHeaderTo(uint8_t *buf, bool isDebug);
void addContributingPartialSection(PartialSection *sec);

// Returns the size of this section in an executable memory image.
Expand Down