diff options
author | Ian Lance Taylor <iant@google.com> | 2007-12-14 18:22:06 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-12-14 18:22:06 +0000 |
commit | c71c6f566c01351ad781155c81311a1ffaece06b (patch) | |
tree | 90e68f59f248aa1aec5283293d522e363decb941 /gold/fileread.h | |
parent | afe8ab2206b453d775fe82aec2d3073181251a3e (diff) | |
download | gdb-c71c6f566c01351ad781155c81311a1ffaece06b.zip gdb-c71c6f566c01351ad781155c81311a1ffaece06b.tar.gz gdb-c71c6f566c01351ad781155c81311a1ffaece06b.tar.bz2 |
Make some File_read methods const.
Diffstat (limited to 'gold/fileread.h')
-rw-r--r-- | gold/fileread.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/fileread.h b/gold/fileread.h index c39f9de..0e5bdbe 100644 --- a/gold/fileread.h +++ b/gold/fileread.h @@ -98,7 +98,7 @@ class File_read // Read data from the file into the buffer P starting at file offset // START for SIZE bytes. void - read(off_t start, off_t size, void* p); + read(off_t start, off_t size, void* p) const; // Return a lasting view into the file starting at file offset START // for SIZE bytes. This is allocated with new, and the caller is @@ -188,11 +188,11 @@ class File_read // Find a view into the file. View* - find_view(off_t start, off_t size); + find_view(off_t start, off_t size) const; // Read data from the file into a buffer. void - do_read(off_t start, off_t size, void* p); + do_read(off_t start, off_t size, void* p) const; // Find or make a view into the file. View* |