bfd/
[binutils-gdb.git] / gold / fileread.h
index d2ac9276f3aa3b6b486a9dc2b3caf48c81c3dde7..08a4583943c7eb5cecd7a6d3cc386433af7039b3 100644 (file)
@@ -52,6 +52,12 @@ struct Timespec
   int nanoseconds;
 };
 
+// Get the last modified time of an unopened file.  Returns false if the
+// file does not exist.
+
+bool
+get_mtime(const char* filename, Timespec* mtime);
+
 class Position_dependent_options;
 class Input_file_argument;
 class Dirsearch;
@@ -487,6 +493,9 @@ class Input_file
       is_in_sysroot_(false), format_(FORMAT_NONE)
   { }
 
+  // Create an input file given just a filename.
+  Input_file(const char* name);
+
   // Create an input file with the contents already provided.  This is
   // only used for testing.  With this path, don't call the open
   // method.