2011-09-19 Sriraman Tallam <tmsriram@google.com>
authorSriraman Tallam <tmsriram@google.com>
Mon, 19 Sep 2011 23:19:16 +0000 (23:19 +0000)
committerSriraman Tallam <tmsriram@google.com>
Mon, 19 Sep 2011 23:19:16 +0000 (23:19 +0000)
* plugin.h (should_defer_layout): Modify to check for any_claimed_.

gold/ChangeLog
gold/plugin.h

index f1ed09e..2139fbf 100644 (file)
@@ -1,3 +1,7 @@
+2011-09-19  Sriraman Tallam  <tmsriram@google.com>
+
+       * plugin.h (should_defer_layout): Modify to check for any_claimed_.
+
 2011-09-19  Cary Coutant  <ccoutant@google.com>
 
        * incremental.cc (can_incremental_update): Fix typo in comment.
index 8f1db67..4c9445a 100644 (file)
@@ -243,7 +243,7 @@ class Plugin_manager
   // and we are still in the initial input phase.
   bool
   should_defer_layout() const
-  { return !this->objects_.empty() && !this->in_replacement_phase_; }
+  { return this->any_claimed_ && !this->in_replacement_phase_; }
 
   // Add a regular object to the deferred layout list.  These are
   // objects whose layout has been deferred until after the