[lld] r248360 - [ELF2] Constify getStrTabSec().

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 18:50:53 PDT 2015


Author: davide
Date: Tue Sep 22 20:50:53 2015
New Revision: 248360

URL: http://llvm.org/viewvc/llvm-project?rev=248360&view=rev
Log:
[ELF2] Constify getStrTabSec().

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=248360&r1=248359&r2=248360&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.h (original)
+++ lld/trunk/ELF/OutputSections.h Tue Sep 22 20:50:53 2015
@@ -185,7 +185,7 @@ public:
       ++NumLocals;
   }
 
-  StringTableSection<ELFT::Is64Bits> &getStrTabSec() { return StrTabSec; }
+  StringTableSection<ELFT::Is64Bits> &getStrTabSec() const { return StrTabSec; }
   unsigned getNumSymbols() const { return NumVisible + 1; }
   void setBssSec(const OutputSection<ELFT> *V) { BssSec = V; }
 




More information about the llvm-commits mailing list