diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-17 06:24:50 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-17 06:24:50 +0000 |
commit | fe9a4c1201a3e0867cbc0324c55cfe90dce9415b (patch) | |
tree | 1cfc4aa11a0b71f31000b3fb7abecc367dd52180 /gold/object.h | |
parent | ae326da8ebcb14de70678bb726732a1c8923d63c (diff) | |
download | gdb-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.h | 5 |
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&); |