diff options
Diffstat (limited to 'gold/fileread.cc')
-rw-r--r-- | gold/fileread.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gold/fileread.cc b/gold/fileread.cc index ac96f5f..668151a 100644 --- a/gold/fileread.cc +++ b/gold/fileread.cc @@ -581,6 +581,20 @@ Input_file::Input_file(const Task* task, const char* name, gold_assert(ok); } +// Return the position dependent options in force for this file. + +const Position_dependent_options& +Input_file::options() const +{ + return this->input_argument_->options(); +} + +// Return the name given by the user. For -lc this will return "c". + +const char* +Input_file::name() const +{ return this->input_argument_->name(); } + // Open the file. // If the filename is not absolute, we assume it is in the current |