OSDN Git Service

compiler: Build import tables as needed for imported interfaces.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 May 2012 17:42:14 +0000 (17:42 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 May 2012 17:42:14 +0000 (17:42 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@187112 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/go/gofrontend/import.cc

index 58b0355..b0d1008 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())