]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gold/fileread.h
* readsyms.cc (Read_symbols::incompatible_warning): New function.
[thirdparty/binutils-gdb.git] / gold / fileread.h
index 365e7addadde298656b8a57434575e8eb35b3c5a..4d19824f04174e181fc29d70ee726e92cf6a6a3e 100644 (file)
@@ -431,10 +431,23 @@ class Input_file
   Input_file(const Task*, const char* name, const unsigned char* contents,
             off_t size);
 
+  // Return the command line argument.
+  const Input_file_argument*
+  input_file_argument() const
+  { return this->input_argument_; }
+
+  // Return whether this is a file that we will search for in the list
+  // of directories.
+  bool
+  will_search_for() const;
+
   // Open the file.  If the open fails, this will report an error and
-  // return false.
+  // return false.  If there is a search, it starts at directory
+  // *PINDEX.  *PINDEX should be initialized to zero.  It may be
+  // restarted to find the next file with a matching name by
+  // incrementing the result and calling this again.
   bool
-  open(const Dirsearch&, const Task*);
+  open(const Dirsearch&, const Task*, int *pindex);
 
   // Return the name given by the user.  For -lc this will return "c".
   const char*