diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-10 06:33:56 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-10 06:33:56 +0000 |
commit | cec9d2f362a9f1c13aad15caed66493463efb674 (patch) | |
tree | 711b97acffe7fb945ae78afb0f2009548aba68b5 /gold/object.h | |
parent | 4e9d858638034246a4ab4595f5497c7393c3bfbf (diff) | |
download | gdb-cec9d2f362a9f1c13aad15caed66493463efb674.zip gdb-cec9d2f362a9f1c13aad15caed66493463efb674.tar.gz gdb-cec9d2f362a9f1c13aad15caed66493463efb674.tar.bz2 |
From Craig Silverstein: don't get confused if the same file name
occurs in an archive.
Diffstat (limited to 'gold/object.h')
-rw-r--r-- | gold/object.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gold/object.h b/gold/object.h index 2baf2da..8f0a3b7 100644 --- a/gold/object.h +++ b/gold/object.h @@ -130,6 +130,11 @@ class Object name() const { return this->name_; } + // Get the offset into the file. + off_t + offset() const + { return this->offset_; } + // Return whether this is a dynamic object. bool is_dynamic() const @@ -277,11 +282,6 @@ class Object input_file() const { return this->input_file_; } - // Get the offset into the file. - off_t - offset() const - { return this->offset_; } - // Get a view into the underlying file. const unsigned char* get_view(off_t start, off_t size, bool cache) |