[lld] r265938 - Mark a few methods const.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 11 06:44:06 PDT 2016
Author: rafael
Date: Mon Apr 11 08:44:05 2016
New Revision: 265938
URL: http://llvm.org/viewvc/llvm-project?rev=265938&view=rev
Log:
Mark a few methods const.
Modified:
lld/trunk/ELF/OutputSections.h
Modified: lld/trunk/ELF/OutputSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.h?rev=265938&r1=265937&r2=265938&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.h (original)
+++ lld/trunk/ELF/OutputSections.h Mon Apr 11 08:44:05 2016
@@ -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;
More information about the llvm-commits
mailing list