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.nir._
import scalanative.util.Scope

object Link {

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy