diff options
author | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2010-07-13 14:59:02 +0000 |
---|---|---|
committer | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2010-07-13 14:59:02 +0000 |
commit | 6951728764c1d0d95285ea58a2ba2e335b73f4cd (patch) | |
tree | bcc095f24fdc615e8003d45df575523cd67b7f00 /gold/fileread.h | |
parent | 8274239589cb7d560af55e3565ad7e6829b1edfe (diff) | |
download | gdb-6951728764c1d0d95285ea58a2ba2e335b73f4cd.zip gdb-6951728764c1d0d95285ea58a2ba2e335b73f4cd.tar.gz gdb-6951728764c1d0d95285ea58a2ba2e335b73f4cd.tar.bz2 |
2010-07-13 Rafael Espindola <espindola@google.com>
* fileread.cc (try_extra_search_path, find_file): Move to Input_file.
* fileread.h (Input_file): Add try_extra_search_path and find_file.
Diffstat (limited to 'gold/fileread.h')
-rw-r--r-- | gold/fileread.h | 14 |
1 files changed, 14 insertions, 0 deletions
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&); |