* fileread.cc: (File_read::View::~View): Use the new
authorIan Lance Taylor <ian@airs.com>
Wed, 28 Oct 2009 00:42:34 +0000 (00:42 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 28 Oct 2009 00:42:34 +0000 (00:42 +0000)
commit2c849493874929a145d42c2a977e693fe6faa19b
treef0280e29e8a4377877d64b0c67326cb01fab0302
parent2499805399b431a88cae733b292b04916e1295d6
* fileread.cc: (File_read::View::~View): Use the new
data_ownership_ filed.
(File_read::~File_read): Dispose the new whole_file_view_.
(File_read::open): Mmap the whole file if needed.
(File_read::open): Use whole_file_view_ instead of contents_.
(File_read::find_view): Use whole_file_view_ if applicable.
(File_read::do_read): Use whole_file_view_ instead of contents_.
(File_read::make_view): Use whole_file_view_ instead of contents_,
update File_read::View::View call.
(File_read::find_or_make_view): Update File_read::View::View
call.
* fileread.h: (File_read::File_read): Initialize whole_file_view_,
remove contents_
(File_read::View::Data_ownership): New enum.
(File_read::View::View): Replace bool mapped_ with Data_ownership
argument.
(File_read::View::mapped_): Remove (replaced by data_ownership_).
(File_read::View::data_ownership_): New field.
(File_read::contents_): Remove (replaced by whole_file_view_).
(File_read::whole_file_view_): New field.
* options.h (class General_options): Add --keep-files-mapped.
gold/ChangeLog
gold/fileread.cc
gold/fileread.h
gold/options.h
This page took 0.025926 seconds and 4 git commands to generate.