diff options
author | Ian Lance Taylor <iant@google.com> | 2008-01-18 23:26:48 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-01-18 23:26:48 +0000 |
commit | 14144f39e4581f4f39bcd44c2f8336fee28b0220 (patch) | |
tree | 27a91c439e1201a53adafe630f40cf9d38b50f30 /gold/fileread.cc | |
parent | 6c0784b28fbb83da4507af0aca9db625363925da (diff) | |
download | gdb-14144f39e4581f4f39bcd44c2f8336fee28b0220.zip gdb-14144f39e4581f4f39bcd44c2f8336fee28b0220.tar.gz gdb-14144f39e4581f4f39bcd44c2f8336fee28b0220.tar.bz2 |
Don't include options.h in fileread.h. Remove General_options
reference from Output_file class.
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 |