Stringpool stats. Also make Symbol_table support functions inline.
[deliverable/binutils-gdb.git] / gold / stringpool.h
index 80e53bef52bf0623cb9bba9a908d71896fc1ade1..c5a3baf884bae628b14e39f44a80c64bd1c7f191 100644 (file)
@@ -84,6 +84,10 @@ class Stringpool_template
 
   ~Stringpool_template();
 
+  // Clear all the data from the stringpool.
+  void
+  clear();
+
   // Indicate that we should not reserve offset 0 to hold the empty
   // string when converting the stringpool to a string table.  This
   // should not be called for a proper ELF SHT_STRTAB section.
@@ -139,6 +143,16 @@ class Stringpool_template
   void
   write(Output_file*, off_t offset);
 
+  // Write the string table into the specified buffer, of the
+  // specified size.  buffer_size should be at least
+  // get_strtab_size().
+  void
+  write_to_buffer(unsigned char* buffer, size_t buffer_size);
+
+  // Dump statistical information to stderr.
+  void
+  print_stats(const char*) const;
+
  private:
   Stringpool_template(const Stringpool_template&);
   Stringpool_template& operator=(const Stringpool_template&);
This page took 0.029709 seconds and 4 git commands to generate.