aboutsummaryrefslogtreecommitdiff
path: root/gold/object.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-02-11 07:42:17 +0000
committerIan Lance Taylor <ian@airs.com>2010-02-11 07:42:17 +0000
commitfa17a3f4328a7f3bbf5491159c422edb0b2da7ba (patch)
treea31fafb5f6b738627a05ad5a22f9a04dfdc04d84 /gold/object.h
parent612bdda1388367fe02d0c4096e87ce7668d4b3ee (diff)
downloadgdb-fa17a3f4328a7f3bbf5491159c422edb0b2da7ba.zip
gdb-fa17a3f4328a7f3bbf5491159c422edb0b2da7ba.tar.gz
gdb-fa17a3f4328a7f3bbf5491159c422edb0b2da7ba.tar.bz2
* dirsearch.cc (Dirsearch::initialize): Add all blockers before
queueing any tasks. * gold.cc (queue_middle_gc_tasks): Likewise. Fix final blocker. (queue_middle_tasks): Add all blockers before queueing any tasks. (queue_final_tasks): Likewise. * token.h (Task_token::add_blockers): New function. * object.h (Input_objects::number_of_relobjs): New function.
Diffstat (limited to 'gold/object.h')
-rw-r--r--gold/object.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/object.h b/gold/object.h
index fb3caef..1be5471 100644
--- a/gold/object.h
+++ b/gold/object.h
@@ -2009,6 +2009,11 @@ class Input_objects
any_dynamic() const
{ return !this->dynobj_list_.empty(); }
+ // Return the number of non dynamic objects.
+ int
+ number_of_relobjs() const
+ { return this->relobj_list_.size(); }
+
// Return the number of input objects.
int
number_of_input_objects() const