Fix syntax error in aix-thread.c:sync_threadlists
[deliverable/binutils-gdb.git] / gold / reloc.h
index ec448acc152be041622e1db688f3eccfdb2e0fa1..4eca71a7081ee90305341cee7a0bca7afa9d7941 100644 (file)
@@ -38,7 +38,7 @@ namespace gold
 class General_options;
 class Object;
 class Relobj;
-class Read_relocs_data;
+struct Read_relocs_data;
 class Symbol;
 class Layout;
 class Output_data;
@@ -873,6 +873,16 @@ class Track_relocs
   int
   advance(off_t offset);
 
+  // Checkpoint the current position in the reloc section.
+  section_size_type
+  checkpoint() const
+  { return this->pos_; }
+
+  // Reset the position to CHECKPOINT.
+  void
+  reset(section_size_type checkpoint)
+  { this->pos_ = checkpoint; }
+
  private:
   // The contents of the input object's reloc section.
   const unsigned char* prelocs_;
This page took 0.022833 seconds and 4 git commands to generate.