compiler: Build import tables as needed for imported interfaces.
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 3 May 2012 17:42:02 +0000 (17:42 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 3 May 2012 17:42:02 +0000 (17:42 +0000)
From-SVN: r187111

gcc/go/gofrontend/import.cc

index 58b0355c6c6fc3ece54fbe4c56cca683d6e35005..b0d10085382ab9c628f74db59c38ac17601739de 100644 (file)
@@ -669,6 +669,9 @@ Import::read_type()
          // This type has not yet been imported.
          ntype->clear_is_visible();
 
+         if (!type->is_undefined() && type->interface_type() != NULL)
+           this->gogo_->record_interface_type(type->interface_type());
+
          type = ntype;
        }
       else if (no->is_type())