gold/
authorCary Coutant <ccoutant@google.com>
Tue, 23 Oct 2012 21:29:20 +0000 (21:29 +0000)
committerCary Coutant <ccoutant@google.com>
Tue, 23 Oct 2012 21:29:20 +0000 (21:29 +0000)
* fileread.cc (Input_file::Input_file): New constructor.
* fileread.h (class Input_file): Add new constructor.

gold/ChangeLog
gold/fileread.cc
gold/fileread.h

index 52e19daa746602f099d095c385e8ad886004c2f7..4ea4b271a1b8e912b43851b1606aa08968c7054a 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-23  Cary Coutant  <ccoutant@google.com>
+
+       * fileread.cc (Input_file::Input_file): New constructor.
+       * fileread.h (class Input_file): Add new constructor.
+
 2012-10-18  Alan Modra  <amodra@gmail.com>
 
        PR gold/14727
index c5dc320c34e8efb8952bfc05f3be021509a46197..3fd35af48eed54824d3904b056effec7af4f672a 100644 (file)
@@ -856,6 +856,16 @@ File_view::~File_view()
 
 // Class Input_file.
 
+// Create a file given just the filename.
+
+Input_file::Input_file(const char* name)
+  : found_name_(), file_(), is_in_sysroot_(false), format_(FORMAT_NONE)
+{
+  this->input_argument_ =
+    new Input_file_argument(name, Input_file_argument::INPUT_FILE_TYPE_FILE,
+                            "", false, Position_dependent_options());
+}
+
 // Create a file for testing.
 
 Input_file::Input_file(const Task* task, const char* name,
index 02c7a641e18747a516b2933ff663bce12a9b090c..08a4583943c7eb5cecd7a6d3cc386433af7039b3 100644 (file)
@@ -493,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.
This page took 0.040852 seconds and 4 git commands to generate.