aboutsummaryrefslogtreecommitdiff
path: root/gold/fileread.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-12-14 18:50:01 +0000
committerIan Lance Taylor <iant@google.com>2007-12-14 18:50:01 +0000
commit7004837e8d2e02ee35c50d236681e9c30a283619 (patch)
tree17f2714bba7ff422479f52000957e3acceb82787 /gold/fileread.h
parentc71c6f566c01351ad781155c81311a1ffaece06b (diff)
downloadgdb-7004837e8d2e02ee35c50d236681e9c30a283619.zip
gdb-7004837e8d2e02ee35c50d236681e9c30a283619.tar.gz
gdb-7004837e8d2e02ee35c50d236681e9c30a283619.tar.bz2
Add const to Object::read and Object::sized_target.
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 0e5bdbe..eddb887 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