unused

package
v3.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package unused defines a transformation pass to remove unused functions.

The transformation works by recursively removing control flow graph nodes that have no predecessor (caller), until all nodes in the graph are called. A caveat is cycles in the graph are not removed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Remove

func Remove(prog *migo.Program, entry *migo.Function)

Remove removes all unused functions from Program prog except entry.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL