diff options
author | Ian Lance Taylor <ian@airs.com> | 2010-02-11 07:42:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2010-02-11 07:42:17 +0000 |
commit | fa17a3f4328a7f3bbf5491159c422edb0b2da7ba (patch) | |
tree | a31fafb5f6b738627a05ad5a22f9a04dfdc04d84 /gold/token.h | |
parent | 612bdda1388367fe02d0c4096e87ce7668d4b3ee (diff) | |
download | gdb-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/token.h')
-rw-r--r-- | gold/token.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gold/token.h b/gold/token.h index dcf00b6..5cf64a0 100644 --- a/gold/token.h +++ b/gold/token.h @@ -1,6 +1,6 @@ // token.h -- lock tokens for gold -*- C++ -*- -// Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +// Copyright 2006, 2007, 2008, 2010 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. @@ -144,6 +144,15 @@ class Task_token this->writer_ = NULL; } + // Add some number of blockers to the token. + void + add_blockers(int c) + { + gold_assert(this->is_blocker_); + this->blockers_ += c; + this->writer_ = NULL; + } + // Remove a blocker from the token. Returns true if block count // drops to zero. bool |