* incremental.cc (can_incremental_update): New function.
[deliverable/binutils-gdb.git] / gold / parameters.cc
index 1b371d8e5bbcb08d5f1e1a701d67a13f0f15662f..c14bd1e8266072bcfafc2e5d6af2e6447a2fb685 100644 (file)
@@ -248,6 +248,14 @@ Parameters::incremental() const
   return this->incremental_mode_ != General_options::INCREMENTAL_OFF;
 }
 
+// Return true if we are doing a full incremental link.
+
+bool
+Parameters::incremental_full() const
+{
+  return this->incremental_mode_ == General_options::INCREMENTAL_FULL;
+}
+
 // Return true if we are doing an incremental update.
 
 bool
@@ -338,7 +346,13 @@ parameters_force_valid_target()
                                 is_big_endian,
                                 elfcpp::GOLD_DEFAULT_OSABI,
                                 0);
-  gold_assert(target != NULL);
+
+  if (target == NULL)
+    {
+      gold_assert(is_big_endian != GOLD_DEFAULT_BIG_ENDIAN);
+      gold_fatal(_("no supported target for -EB/-EL option"));
+    }
+
   set_parameters_target(target);
 }
 
This page took 0.023315 seconds and 4 git commands to generate.