summaryrefslogtreecommitdiff
path: root/gold/fileread.h
diff options
context:
space:
mode:
Diffstat (limited to 'gold/fileread.h')
-rw-r--r--gold/fileread.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gold/fileread.h b/gold/fileread.h
index 0e5bdbe3348..eddb88707bf 100644
--- a/gold/fileread.h
+++ b/gold/fileread.h
@@ -78,7 +78,7 @@ class File_read
// Test whether the object is locked.
bool
- is_locked();
+ is_locked() const;
// Return the size of the file.
off_t
@@ -323,6 +323,10 @@ class Input_file
file()
{ return this->file_; }
+ const File_read&
+ file() const
+ { return this->file_; }
+
// Whether we found the file in a directory in the system root.
bool
is_in_sysroot() const