* fileread.cc (Input_file::Input_file): New constructor.
	* fileread.h (class Input_file): Add new constructor.
This commit is contained in:
Cary Coutant
2012-10-23 21:29:20 +00:00
parent 274bd0009d
commit effe83657d
3 changed files with 18 additions and 0 deletions

View 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.