diff options
author | Ian Lance Taylor <iant@google.com> | 2007-09-25 23:08:30 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-09-25 23:08:30 +0000 |
commit | d1038c216f2488464a7feda2c5949e126e0c2f1a (patch) | |
tree | 6c0b57a1a8d9454af677207b8340738480d3c799 /gold/fileread.h | |
parent | 9eb9fa57c2a9eec4c08491715d3341df811b7f9c (diff) | |
download | gdb-d1038c216f2488464a7feda2c5949e126e0c2f1a.zip gdb-d1038c216f2488464a7feda2c5949e126e0c2f1a.tar.gz gdb-d1038c216f2488464a7feda2c5949e126e0c2f1a.tar.bz2 |
Use mmap to read from input files.
Diffstat (limited to 'gold/fileread.h')
-rw-r--r-- | gold/fileread.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gold/fileread.h b/gold/fileread.h index 0e5caa9..cda5d9c 100644 --- a/gold/fileread.h +++ b/gold/fileread.h @@ -114,13 +114,14 @@ class File_read File_read(const File_read&); File_read& operator=(const File_read&); - // A view into the file when not using mmap. + // A view into the file. class View { public: - View(off_t start, off_t size, const unsigned char* data, bool cache) + View(off_t start, off_t size, const unsigned char* data, bool cache, + bool mapped) : start_(start), size_(size), data_(data), lock_count_(0), - cache_(cache) + cache_(cache), mapped_(mapped) { } ~View(); @@ -163,6 +164,7 @@ class File_read const unsigned char* data_; int lock_count_; bool cache_; + bool mapped_; }; friend class File_view; |