public ISymbolNode TypeThreadStaticsIndexSymbol(TypeDesc type) { if (CompilationModuleGroup.ContainsType(type)) { return(ThreadStaticsIndex); } else { return(ExternSymbol(ThreadStaticsIndexNode.GetMangledName((NameMangler as UTCNameMangler).GetImportedTlsIndexPrefix()))); } }
public ISortableSymbolNode TypeThreadStaticsIndexSymbol(TypeDesc type) { if (CompilationModuleGroup.ContainsType(type)) { return(ThreadStaticsIndex); } else if (CompilationModuleGroup.ShouldReferenceThroughImportTable(type)) { return(_importedThreadStaticsIndices.GetOrAdd((MetadataType)type)); } else { return(ExternSymbol(ThreadStaticsIndexNode.GetMangledName((NameMangler as UTCNameMangler).GetImportedTlsIndexPrefix()))); } }