aboutsummaryrefslogtreecommitdiff
path: root/gold/fileread.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-08-21 23:37:56 +0000
committerIan Lance Taylor <iant@google.com>2007-08-21 23:37:56 +0000
commit4973341a7d985b4d211b0b2ce14d95e2c05dbd37 (patch)
treef9e70df85ba58125e976bc2377bcdcf3d463bd51 /gold/fileread.h
parent72a2eed757d46b207f6e127dcc7c5acf848f5872 (diff)
downloadgdb-4973341a7d985b4d211b0b2ce14d95e2c05dbd37.zip
gdb-4973341a7d985b4d211b0b2ce14d95e2c05dbd37.tar.gz
gdb-4973341a7d985b4d211b0b2ce14d95e2c05dbd37.tar.bz2
Implement --whole-archive.
Diffstat (limited to 'gold/fileread.h')
-rw-r--r--gold/fileread.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/gold/fileread.h b/gold/fileread.h
index 178e7f3..f3ac753 100644
--- a/gold/fileread.h
+++ b/gold/fileread.h
@@ -55,7 +55,7 @@ class File_read
// Unlock the descriptor, permitting it to be closed if necessary.
void
unlock();
-
+
// Test whether the object is locked.
bool
is_locked();
@@ -65,12 +65,12 @@ class File_read
// we can not read enough data. Otherwise *PBYTES is set to the
// number of bytes read.
const unsigned char*
- get_view(off_t start, off_t size, off_t *pbytes = NULL);
+ get_view(off_t start, off_t size, off_t* pbytes = NULL);
// Read data from the file into the buffer P. PBYTES is as in
// get_view.
void
- read(off_t start, off_t size, void* p, off_t *pbytes = NULL);
+ read(off_t start, off_t size, void* p, off_t* pbytes = NULL);
// Return a lasting view into the file. This is allocated with new,
// and the caller is responsible for deleting it when done. The
@@ -240,6 +240,12 @@ class Input_file
filename() const
{ return this->file_.filename(); }
+ // Return the position dependent options.
+ const Position_dependent_options&
+ options() const
+ { return this->input_argument_->options(); }
+
+ // Return the file.
File_read&
file()
{ return this->file_; }