aboutsummaryrefslogtreecommitdiff
path: root/gold/dirsearch.h
diff options
context:
space:
mode:
authorSterling Augustine <saugustine@google.com>2011-11-17 17:46:54 +0000
committerSterling Augustine <saugustine@google.com>2011-11-17 17:46:54 +0000
commit628f39beca35cfdf725fdb4f855272c1166ad656 (patch)
tree1b820aae7730c0b44b8c10f05c98b58dd9650afe /gold/dirsearch.h
parenta7bbf4e9b9ed14909afef85db4ffc91a6f4cb50a (diff)
downloadfsf-binutils-gdb-628f39beca35cfdf725fdb4f855272c1166ad656.zip
fsf-binutils-gdb-628f39beca35cfdf725fdb4f855272c1166ad656.tar.gz
fsf-binutils-gdb-628f39beca35cfdf725fdb4f855272c1166ad656.tar.bz2
2011-11-17 Sterling Augustine <saugustine@google.com>
* script.cc (script_include_directive): Implement. (read_script_file): New local variables name and search_path. Update comment. Call IS_ABSOLUTE_PATH and Dirsearch::find_file_in_dir_list. * dirsearch.h (Dirsearch::find_file_in_dir_list): Declare new method. * dirsearch.cc (Dirsearch::find_file_in_dir_list): Implement it.
Diffstat (limited to 'gold/dirsearch.h')
-rw-r--r--gold/dirsearch.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/dirsearch.h b/gold/dirsearch.h
index 270cef6..ebc0b5b 100644
--- a/gold/dirsearch.h
+++ b/gold/dirsearch.h
@@ -67,6 +67,13 @@ class Dirsearch
token()
{ return &this->token_; }
+ // Search for a file in a directory list. This is a low-level function and
+ // therefore can be used before options and parameters are set.
+ static std::string
+ find_file_in_dir_list(const std::string& name,
+ const General_options::Dir_list& directories,
+ const std::string& extra_search_dir);
+
private:
// We can not copy this class.
Dirsearch(const Dirsearch&);