~ubuntu-branches/debian/squeeze/binutils/squeeze

« back to all changes in this revision

Viewing changes to gold/symtab.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-09-10 17:05:30 UTC
  • mfrom: (1.4.5 upstream) (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090910170530-wa6gpju9pq5c56on
Tags: 2.19.91.20090910-1
* Snapshot, taken from the 2.20 release branch 20090910, corresponding
  to the 2.19.90 upstream snapshot.
* Fix Thumb-2 shared libraries (Daniel Jacobowitz), patch taken
  from the trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <vector>
29
29
 
30
30
#include "gc.h"
 
31
#include "icf.h"
31
32
#include "elfcpp.h"
32
33
#include "parameters.h"
33
34
#include "stringpool.h"
58
59
class Output_file;
59
60
class Output_symtab_xindex;
60
61
class Garbage_collection;
 
62
class Icf;
61
63
 
62
64
// The base class of an entry in the symbol table.  The symbol table
63
65
// can have a lot of entries, so we don't want this class to big.
1163
1165
  ~Symbol_table();
1164
1166
 
1165
1167
  void
 
1168
  set_icf(Icf* icf)
 
1169
  { this->icf_ = icf;}
 
1170
 
 
1171
  Icf*
 
1172
  icf() const
 
1173
  { return this->icf_; }
 
1174
 
 
1175
  // Returns true if ICF determined that this is a duplicate section. 
 
1176
  bool
 
1177
  is_section_folded(Object* obj, unsigned int shndx) const;
 
1178
 
 
1179
  void
1166
1180
  set_gc(Garbage_collection* gc)
1167
1181
  { this->gc_ = gc; }
1168
1182
 
1169
1183
  Garbage_collection*
1170
 
  gc()
 
1184
  gc() const
1171
1185
  { return this->gc_; }
1172
1186
 
1173
1187
  // During garbage collection, this keeps undefined symbols.
1670
1684
  // Information parsed from the version script, if any.
1671
1685
  const Version_script_info& version_script_;
1672
1686
  Garbage_collection* gc_;
 
1687
  Icf* icf_;
1673
1688
};
1674
1689
 
1675
1690
// We inline get_sized_symbol for efficiency.