summaryrefslogtreecommitdiff
path: root/gold/fileread.h
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2010-07-13 14:59:02 +0000
committerRafael Ávila de Espíndola <respindola@mozilla.com>2010-07-13 14:59:02 +0000
commit6951728764c1d0d95285ea58a2ba2e335b73f4cd (patch)
treebcc095f24fdc615e8003d45df575523cd67b7f00 /gold/fileread.h
parent8274239589cb7d560af55e3565ad7e6829b1edfe (diff)
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.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gold/fileread.h b/gold/fileread.h
index a81b5fe40f..3a8f93289e 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&);