aboutsummaryrefslogtreecommitdiff
path: root/gold/fileread.cc
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.cc
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.cc')
-rw-r--r--gold/fileread.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/gold/fileread.cc b/gold/fileread.cc
index b917109..e5df08b 100644
--- a/gold/fileread.cc
+++ b/gold/fileread.cc
@@ -161,7 +161,7 @@ File_read::unlock()
}
bool
-File_read::is_locked()
+File_read::is_locked() const
{
return this->lock_count_ > 0;
}
@@ -223,8 +223,6 @@ File_read::do_read(off_t start, off_t size, void* p) const
void
File_read::read(off_t start, off_t size, void* p) const
{
- gold_assert(this->lock_count_ > 0);
-
File_read::View* pv = this->find_view(start, size);
if (pv != NULL)
{