Remove const from return type of get_output_view.
authorCary Coutant <ccoutant@gmail.com>
Sun, 13 Dec 2015 22:04:24 +0000 (14:04 -0800)
committerCary Coutant <ccoutant@gmail.com>
Sun, 13 Dec 2015 22:04:24 +0000 (14:04 -0800)
gold/
* object.h (Object::get_output_view): remove const from return type.
(Object::do_get_output_view): Likewise.
(Sized_relobj_file::do_get_output_view): Likewise.
* reloc.cc (Sized_relobj_file::do_get_output_view): Likewise.

gold/ChangeLog
gold/object.h
gold/reloc.cc

index e039ab1d097713acdc62066c820d0dee879a3d76..06608eb5ec122f653149afb85379d232b1202c13 100644 (file)
@@ -1,3 +1,10 @@
+2015-12-13  Cary Coutant  <ccoutant@gmail.com>
+
+       * object.h (Object::get_output_view): remove const from return type.
+       (Object::do_get_output_view): Likewise.
+       (Sized_relobj_file::do_get_output_view): Likewise.
+       * reloc.cc (Sized_relobj_file::do_get_output_view): Likewise.
+
 2015-12-11  Cary Coutant  <ccoutant@gmail.com>
 
        * target.h (Target::calls_non_split): Add prelocs, reloc_count
index 6cb82c7633842ba7fee82cc62581dfbbffe7bc3a..a15509a147c899bcc805911a9368adb0a03f4f08 100644 (file)
@@ -845,7 +845,7 @@ class Object
   { return this->do_get_incremental_reloc_count(symndx); }
 
   // Return the output view for section SHNDX.
-  const unsigned char*
+  unsigned char*
   get_output_view(unsigned int shndx, section_size_type* plen) const
   { return this->do_get_output_view(shndx, plen); }
 
@@ -1035,7 +1035,7 @@ class Object
   { gold_unreachable(); }
 
   // Return the output view for a section.
-  virtual const unsigned char*
+  virtual unsigned char*
   do_get_output_view(unsigned int, section_size_type*) const
   { gold_unreachable(); }
 
@@ -2574,7 +2574,7 @@ class Sized_relobj_file : public Sized_relobj<size, big_endian>
   { this->output_local_symbol_count_ = value; }
 
   // Return the output view for a section.
-  const unsigned char*
+  unsigned char*
   do_get_output_view(unsigned int, section_size_type*) const;
 
  private:
index c0c06c5ce6fe72d9ce9e0396908b3c883c46fde9..0b4551483e9238a81de1dda5abbe00d4e2eeee99 100644 (file)
@@ -1061,7 +1061,7 @@ Sized_relobj_file<size, big_endian>::do_relocate_sections(
 // Return the output view for section SHNDX.
 
 template<int size, bool big_endian>
-const unsigned char*
+unsigned char*
 Sized_relobj_file<size, big_endian>::do_get_output_view(
     unsigned int shndx,
     section_size_type* plen) const
@@ -1775,7 +1775,7 @@ Sized_relobj_file<32, false>::do_relocate_sections(
     Views* pviews);
 
 template
-const unsigned char*
+unsigned char*
 Sized_relobj_file<32, false>::do_get_output_view(
     unsigned int shndx,
     section_size_type* plen) const;
@@ -1792,7 +1792,7 @@ Sized_relobj_file<32, true>::do_relocate_sections(
     Views* pviews);
 
 template
-const unsigned char*
+unsigned char*
 Sized_relobj_file<32, true>::do_get_output_view(
     unsigned int shndx,
     section_size_type* plen) const;
@@ -1809,7 +1809,7 @@ Sized_relobj_file<64, false>::do_relocate_sections(
     Views* pviews);
 
 template
-const unsigned char*
+unsigned char*
 Sized_relobj_file<64, false>::do_get_output_view(
     unsigned int shndx,
     section_size_type* plen) const;
@@ -1826,7 +1826,7 @@ Sized_relobj_file<64, true>::do_relocate_sections(
     Views* pviews);
 
 template
-const unsigned char*
+unsigned char*
 Sized_relobj_file<64, true>::do_get_output_view(
     unsigned int shndx,
     section_size_type* plen) const;