reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1149 if (WS.isFunction()) 1150 registerFunctionType(WS); 1152 if (WS.isEvent()) 1153 registerEventType(WS); 1155 if (WS.isTemporary()) 1159 if (!WS.isDefined() && !WS.isComdat()) { 1159 if (!WS.isDefined() && !WS.isComdat()) { 1160 if (WS.isFunction()) { 1162 Import.Module = WS.getImportModule(); 1163 Import.Field = WS.getImportName(); 1165 Import.SigIndex = getFunctionType(WS); 1167 assert(WasmIndices.count(&WS) == 0); 1168 WasmIndices[&WS] = NumFunctionImports++; 1169 } else if (WS.isGlobal()) { 1170 if (WS.isWeak()) 1174 Import.Field = WS.getImportName(); 1176 Import.Module = WS.getImportModule(); 1177 Import.Global = WS.getGlobalType(); 1179 assert(WasmIndices.count(&WS) == 0); 1180 WasmIndices[&WS] = NumGlobalImports++; 1181 } else if (WS.isEvent()) { 1182 if (WS.isWeak()) 1186 Import.Module = WS.getImportModule(); 1187 Import.Field = WS.getImportName(); 1190 Import.Event.SigIndex = getEventType(WS); 1192 assert(WasmIndices.count(&WS) == 0); 1193 WasmIndices[&WS] = NumEventImports++;