[lld] r248019 - [ELF2] Constify member functions.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 18 11:28:08 PDT 2015


Author: davide
Date: Fri Sep 18 13:28:08 2015
New Revision: 248019

URL: http://llvm.org/viewvc/llvm-project?rev=248019&view=rev
Log:
[ELF2] Constify member functions.


Modified:
    lld/trunk/ELF/InputFiles.h

Modified: lld/trunk/ELF/InputFiles.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.h?rev=248019&r1=248018&r2=248019&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.h (original)
+++ lld/trunk/ELF/InputFiles.h Fri Sep 18 13:28:08 2015
@@ -132,7 +132,7 @@ public:
       : ObjectFileBase(getStaticELFKind<ELFT>(), M) {}
   void parse() override;
 
-  ArrayRef<SectionChunk<ELFT> *> getChunks() { return Chunks; }
+  ArrayRef<SectionChunk<ELFT> *> getChunks() const { return Chunks; }
 
   SymbolBody *getSymbolBody(uint32_t SymbolIndex) const {
     uint32_t FirstNonLocal = this->Symtab->sh_info;
@@ -143,8 +143,8 @@ public:
 
   Elf_Sym_Range getLocalSymbols();
 
-  const Elf_Shdr *getSymbolTable() { return this->Symtab; };
-  ArrayRef<Elf_Word> getSymbolTableShndx() { return SymtabSHNDX; };
+  const Elf_Shdr *getSymbolTable() const { return this->Symtab; };
+  ArrayRef<Elf_Word> getSymbolTableShndx() const { return SymtabSHNDX; };
 
 private:
   void initializeChunks();




More information about the llvm-commits mailing list