aboutsummaryrefslogtreecommitdiff
path: root/gold/object.h
diff options
context:
space:
mode:
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&);