From 6951728764c1d0d95285ea58a2ba2e335b73f4cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Tue, 13 Jul 2010 14:59:02 +0000 Subject: 2010-07-13 Rafael Espindola * fileread.cc (try_extra_search_path, find_file): Move to Input_file. * fileread.h (Input_file): Add try_extra_search_path and find_file. --- gold/fileread.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gold/fileread.h') diff --git a/gold/fileread.h b/gold/fileread.h index a81b5fe..3a8f932 100644 --- a/gold/fileread.h +++ b/gold/fileread.h @@ -565,6 +565,20 @@ class Input_file format() const { return this->format_; } + // Try to find a file in the extra search dirs. Returns true on success. + static bool + try_extra_search_path(int* pindex, + const Input_file_argument* input_argument, + std::string filename, std::string* found_name, + std::string* namep); + + // Find the actual file. + static bool + find_file(const Dirsearch& dirpath, int* pindex, + const Input_file_argument* input_argument, + bool* is_in_sysroot, + std::string* found_name, std::string* namep); + private: Input_file(const Input_file&); Input_file& operator=(const Input_file&); -- cgit v1.1