Exemplo n.º 1
0
 public ISymbolNode TypeThreadStaticsIndexSymbol(TypeDesc type)
 {
     if (CompilationModuleGroup.ContainsType(type))
     {
         return(ThreadStaticsIndex);
     }
     else
     {
         return(ExternSymbol(ThreadStaticsIndexNode.GetMangledName((NameMangler as UTCNameMangler).GetImportedTlsIndexPrefix())));
     }
 }
Exemplo n.º 2
0
 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())));
     }
 }