From cb29561284eaa37c5c8967e49a5db0a4064368bf Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 2 Jan 2008 23:48:49 +0000 Subject: Reduce the number of system calls. Use readv instead of pread. Do better handling of cached views. --- gold/archive.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gold/archive.h') diff --git a/gold/archive.h b/gold/archive.h index fb83ea6..0dfaf92 100644 --- a/gold/archive.h +++ b/gold/archive.h @@ -117,10 +117,11 @@ class Archive void read_armap(off_t start, section_size_type size); - // Read an archive member header at OFF. Return the size of the - // member, and set *PNAME to the name. + // Read an archive member header at OFF. CACHE is whether to cache + // the file view. Return the size of the member, and set *PNAME to + // the name. off_t - read_header(off_t off, std::string* pname); + read_header(off_t off, bool cache, std::string* pname); // Interpret an archive header HDR at OFF. Return the size of the // member, and set *PNAME to the name. -- cgit v1.1