diff options
-rw-r--r-- | lld/ELF/OutputSections.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/ELF/OutputSections.h b/lld/ELF/OutputSections.h index a0d4df035d8..2a65379b72d 100644 --- a/lld/ELF/OutputSections.h +++ b/lld/ELF/OutputSections.h @@ -72,14 +72,14 @@ public: // Returns the size of the section in the output file. uintX_t getSize() const { return Header.sh_size; } void setSize(uintX_t Val) { Header.sh_size = Val; } - uintX_t getFlags() { return Header.sh_flags; } - uintX_t getFileOff() { return Header.sh_offset; } - uintX_t getAlign() { + uintX_t getFlags() const { return Header.sh_flags; } + uintX_t getFileOff() const { return Header.sh_offset; } + uintX_t getAlign() const { // The ELF spec states that a value of 0 means the section has no alignment // constraits. return std::max<uintX_t>(Header.sh_addralign, 1); } - uint32_t getType() { return Header.sh_type; } + uint32_t getType() const { return Header.sh_type; } void updateAlign(uintX_t Align) { if (Align > Header.sh_addralign) Header.sh_addralign = Align; |