From fd9d194f0467de25e3d6e6131d641f179d7eb289 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 28 Feb 2009 04:39:57 +0000 Subject: PR 6811 * options.h (class Search_directory): Add is_system_directory. (class General_options): Declare is_in_system_directory. * options.cc (get_relative_sysroot): Make static. (get_default_sysroot): Make static. (General_optoins::is_in_system_directory): New function. * fileread.cc (Input_file::is_in_system_directory): New function. * fileread.h (class Input_file): Declare is_in_system_directory. * object.h (class Object): Add is_in_system_directory. (class Input_objects): Remove system_library_directory_ field. * object.cc (Input_objects::add_object): Don't set system_library_directory_. (input_objects::found_in_system_library_directory): Remove. * symtab.cc (Symbol_table::write_globals): Remove input_objects parameter. Change all callers. (Symbol_table::sized_write_globals): Likewise. (Symbol_table::warn_about_undefined_dynobj_symbol): Likewise. Call Object::is_in_system_directory. * symtab.h (class Symbol_table): Update declarations. --- gold/fileread.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gold/fileread.h') diff --git a/gold/fileread.h b/gold/fileread.h index 3afba86..1c0969c 100644 --- a/gold/fileread.h +++ b/gold/fileread.h @@ -471,6 +471,10 @@ class Input_file is_in_sysroot() const { return this->is_in_sysroot_; } + // Whether this file is in a system directory. + bool + is_in_system_directory() const; + // Return whether this file is to be read only for its symbols. bool just_symbols() const; -- cgit v1.1