aboutsummaryrefslogtreecommitdiff
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
commitfe9a4c1201a3e0867cbc0324c55cfe90dce9415b (patch)
tree1cfc4aa11a0b71f31000b3fb7abecc367dd52180 /gold/object.h
parentae326da8ebcb14de70678bb726732a1c8923d63c (diff)
downloadgdb-fe9a4c1201a3e0867cbc0324c55cfe90dce9415b.zip
gdb-fe9a4c1201a3e0867cbc0324c55cfe90dce9415b.tar.gz
gdb-fe9a4c1201a3e0867cbc0324c55cfe90dce9415b.tar.bz2
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 1b8c1e2..46e332f 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&);