All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.scalanative.linker.Link.scala Maven / Gradle / Ivy

There is a newer version: 0.5.5
Show newest version
package scala.scalanative
package linker

import scalanative.util.Scope

object Link {

  /** Load all clases and methods reachable from the entry points. */
  def apply(config: build.Config, entries: Seq[nir.Global])(implicit
      scope: Scope
  ): ReachabilityAnalysis =
    Reach(config, entries, ClassLoader.fromDisk(config))

  /** Run reachability analysis on already loaded methods. */
  def apply(
      config: build.Config,
      entries: Seq[nir.Global],
      defns: Seq[nir.Defn]
  ): ReachabilityAnalysis =
    Reach(config, entries, ClassLoader.fromMemory(defns))

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy