From 7004837e8d2e02ee35c50d236681e9c30a283619 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 14 Dec 2007 18:50:01 +0000 Subject: Add const to Object::read and Object::sized_target. --- gold/fileread.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gold/fileread.h') 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 -- cgit v1.1