18 references to Module
ILCompiler.ReadyToRun (18)
PortableCallHelpers\PInvokeCollector.cs (2)
29private string Identity => $"{EntryPoint}!{Module}!{Method.OwningType}::{Method.Name.ToString()}{Method.Signature}"; 38public override string ToString() => $"{{ EntryPoint: {EntryPoint}, Module: {Module}, Method: {Method}, Skip: {Skip} }}";
PortableCallHelpers\PInvokeTableGenerator.cs (16)
46if (modules.Contains(pinvoke.Module)) 50foreach (string variation in MarshalHelpers.GetPInvokeModuleNameVariations(target, pinvoke.Module)) 61modules.Add(pinvoke.Module); 70modules.Add(pinvoke.Module); 71log.Verbose($"Adding module {pinvoke.Module} for WasmImportLinkage"); 73else if (pinvoke.Module == "*") 76modules.Add(pinvoke.Module); 77log.Verbose($"Adding module {pinvoke.Module} for static linking"); 79else if (pinvoke.Module != "QCall") 87if (skippedModules.Add(pinvoke.Module)) 88log.Verbose($"Skipping unresolved PInvoke module '{pinvoke.Module}' for method '{pinvoke.Method.OwningType}::{pinvoke.Method.Name.ToString()}' (not statically linked on wasm; will throw if called)."); 106.Where(l => modules.Contains(l.Module)) 119log.Warning("WASM0001", $"Found a native function ({first.EntryPoint}) with varargs in {first.Module}." + 149.Where(l => l.Module == module && !l.Skip) 449return FixupSymbolName($"{namespaceName}#{pinvoke.Module}#{pinvoke.EntryPoint}"); 470? $"__attribute__((import_module(\"{EscapeLiteral(pinvoke.Module)}\"),import_name(\"{EscapeLiteral(pinvoke.EntryPoint)}\"))) "