Line 44... |
Line 44... |
class Incremental_archive_entry;
|
class Incremental_archive_entry;
|
class Incremental_inputs;
|
class Incremental_inputs;
|
class Incremental_binary;
|
class Incremental_binary;
|
class Incremental_library;
|
class Incremental_library;
|
class Object;
|
class Object;
|
class Script_info;
|
|
|
|
// Incremental input type as stored in .gnu_incremental_inputs.
|
// Incremental input type as stored in .gnu_incremental_inputs.
|
|
|
enum Incremental_input_type
|
enum Incremental_input_type
|
{
|
{
|
Line 257... |
Line 256... |
|
|
class Script_info
|
class Script_info
|
{
|
{
|
public:
|
public:
|
Script_info(const std::string& filename)
|
Script_info(const std::string& filename)
|
: filename_(filename), incremental_script_entry_(NULL)
|
: filename_(filename), input_file_index_(0),
|
|
incremental_script_entry_(NULL)
|
|
{ }
|
|
|
|
Script_info(const std::string& filename, unsigned int input_file_index)
|
|
: filename_(filename), input_file_index_(input_file_index),
|
|
incremental_script_entry_(NULL)
|
{ }
|
{ }
|
|
|
// Store a pointer to the incremental information for this script.
|
// Store a pointer to the incremental information for this script.
|
void
|
void
|
set_incremental_info(Incremental_script_entry* entry)
|
set_incremental_info(Incremental_script_entry* entry)
|
Line 270... |
Line 275... |
// Return the filename.
|
// Return the filename.
|
const std::string&
|
const std::string&
|
filename() const
|
filename() const
|
{ return this->filename_; }
|
{ return this->filename_; }
|
|
|
|
// Return the input file index.
|
|
unsigned int
|
|
input_file_index() const
|
|
{ return this->input_file_index_; }
|
|
|
// Return the pointer to the incremental information for this script.
|
// Return the pointer to the incremental information for this script.
|
Incremental_script_entry*
|
Incremental_script_entry*
|
incremental_info() const
|
incremental_info() const
|
{ return this->incremental_script_entry_; }
|
{ return this->incremental_script_entry_; }
|
|
|
private:
|
private:
|
const std::string filename_;
|
const std::string filename_;
|
|
unsigned int input_file_index_;
|
Incremental_script_entry* incremental_script_entry_;
|
Incremental_script_entry* incremental_script_entry_;
|
};
|
};
|
|
|
// Class for recording input scripts.
|
// Class for recording input scripts.
|
|
|
Line 1401... |
Line 1412... |
return this->input_args_map_[arg_serial - 1];
|
return this->input_args_map_[arg_serial - 1];
|
}
|
}
|
|
|
// Return an Incremental_library for the given input file.
|
// Return an Incremental_library for the given input file.
|
Incremental_library*
|
Incremental_library*
|
get_library(unsigned int n)
|
get_library(unsigned int n) const
|
{ return this->library_map_[n]; }
|
{ return this->library_map_[n]; }
|
|
|
// Return a Script_info for the given input file.
|
// Return a Script_info for the given input file.
|
Script_info*
|
Script_info*
|
get_script_info(unsigned int n)
|
get_script_info(unsigned int n) const
|
{ return this->script_map_[n]; }
|
{ return this->script_map_[n]; }
|
|
|
// Initialize the layout of the output file based on the existing
|
// Initialize the layout of the output file based on the existing
|
// output file.
|
// output file.
|
void
|
void
|