aboutsummaryrefslogtreecommitdiff
path: root/gold/dirsearch.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2011-05-25 06:15:28 +0000
committerIan Lance Taylor <ian@airs.com>2011-05-25 06:15:28 +0000
commit1706a06f9e3f4dbdc5f516e3631d44a081e8b95e (patch)
treeaf8a730d66a33ad655177a7ea6788553e659cc72 /gold/dirsearch.h
parenta10ae760821ec6f09cf63f93e3b2ff0e03fbaa3d (diff)
downloadfsf-binutils-gdb-1706a06f9e3f4dbdc5f516e3631d44a081e8b95e.zip
fsf-binutils-gdb-1706a06f9e3f4dbdc5f516e3631d44a081e8b95e.tar.gz
fsf-binutils-gdb-1706a06f9e3f4dbdc5f516e3631d44a081e8b95e.tar.bz2
* dirsearch.cc (Dirsearch::find): Replace n1 and n2 parameters
with name parameter. Add found_name parameter. * fileread.cc (Input_file::find_file): Adjust code accordingly. * dirsearch.h (class Dirsearch): Update declaration.
Diffstat (limited to 'gold/dirsearch.h')
-rw-r--r--gold/dirsearch.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gold/dirsearch.h b/gold/dirsearch.h
index 986d389..270cef6 100644
--- a/gold/dirsearch.h
+++ b/gold/dirsearch.h
@@ -1,6 +1,6 @@
// dirsearch.h -- directory searching for gold -*- C++ -*-
-// Copyright 2006, 2007, 2008 Free Software Foundation, Inc.
+// Copyright 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
@@ -59,8 +59,8 @@ class Dirsearch
// and that value plus one may be used to find the next file with
// the same name(s).
std::string
- find(const std::string&, const std::string& n2, bool* is_in_sysroot,
- int* pindex) const;
+ find(const std::vector<std::string>& names, bool* is_in_sysroot,
+ int* pindex, std::string *found_name) const;
// Return the blocker token which controls access.
Task_token*