summaryrefslogtreecommitdiff
path: root/gold/object.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-17 06:24:50 +0000
committerIan Lance Taylor <iant@google.com>2007-10-17 06:24:50 +0000
commit4c929b5c0ba7dd8c0fc69b54fda2afa2bed684c0 (patch)
treead37c7d99c812e0c10f50257c5bfdc305cd11e36 /gold/object.h
parent7aee9d2f08cc01882907c72a0ce586183ef4dba8 (diff)
downloadbinutils-redhat-4c929b5c0ba7dd8c0fc69b54fda2afa2bed684c0.tar.gz
Add infrastructure for threading support.
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 1b8c1e2440..46e332f505 100644
--- a/gold/object.h
+++ b/gold/object.h
@@ -828,6 +828,11 @@ class Input_objects
any_dynamic() const
{ return !this->dynobj_list_.empty(); }
+ // Return the number of input objects.
+ int
+ number_of_input_objects() const
+ { return this->relobj_list_.size() + this->dynobj_list_.size(); }
+
private:
Input_objects(const Input_objects&);
Input_objects& operator=(const Input_objects&);