]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gold/parameters.cc
* readsyms.cc (Read_symbols::incompatible_warning): New function.
[thirdparty/binutils-gdb.git] / gold / parameters.cc
index 729305116aad78086d58ac1cff81c0abb17a312d..6b4e81fd694a3ed0d35fb53b5e4869413272cb05 100644 (file)
@@ -97,6 +97,16 @@ Parameters::default_target() const
   return *target;
 }
 
+// Return whether TARGET is compatible with the target we are using.
+
+bool
+Parameters::is_compatible_target(const Target* target) const
+{
+  if (this->target_ == NULL)
+    return true;
+  return target == this->target_;
+}
+
 Parameters::Target_size_endianness
 Parameters::size_and_endianness() const
 {