diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-06 20:32:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-06 20:32:10 +0000 |
commit | fbfba5088712eb014b9051baa71f9636359d159e (patch) | |
tree | 6836ec1f682dc1c4954429d9be124c268d530526 /gold/object.h | |
parent | 755ab8af10558c40e5090e92c46bbbd89815c292 (diff) | |
download | gdb-fbfba5088712eb014b9051baa71f9636359d159e.zip gdb-fbfba5088712eb014b9051baa71f9636359d159e.tar.gz gdb-fbfba5088712eb014b9051baa71f9636359d159e.tar.bz2 |
Support creating empty output when there are no input objects.
Diffstat (limited to 'gold/object.h')
-rw-r--r-- | gold/object.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gold/object.h b/gold/object.h index dbe0ca1..b83d420 100644 --- a/gold/object.h +++ b/gold/object.h @@ -1367,8 +1367,7 @@ class Input_objects { public: Input_objects() - : relobj_list_(), dynobj_list_(), target_(NULL), sonames_(), - system_library_directory_() + : relobj_list_(), dynobj_list_(), sonames_(), system_library_directory_() { } // The type of the list of input relocateable objects. @@ -1384,11 +1383,6 @@ class Input_objects bool add_object(Object*); - // Get the target we should use for the output file. - Target* - target() const - { return this->target_; } - // For each dynamic object, check whether we've seen all of its // explicit dependencies. void @@ -1437,8 +1431,6 @@ class Input_objects Relobj_list relobj_list_; // The list of dynamic objects included in the link. Dynobj_list dynobj_list_; - // The target. - Target* target_; // SONAMEs that we have seen. Unordered_set<std::string> sonames_; // The directory in which we find the libc.so. |