validate

package
v0.0.0-...-563a209 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2016 License: LGPL-3.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(mod *ssa.Module) error

Validate attempts to validate the passed module, returning an error if validation fails. Note that if the module is modified between calling Validate and viewing the error, the error may be incorrect or nonsensical.

func VisitBlocks

func VisitBlocks(mod *ssa.Module, visitFn func(*ssa.Block))

func VisitInstrs

func VisitInstrs(mod *ssa.Module, visitFn func(ssa.Instruction))

Types

type BlockError

type BlockError struct {
	Message string
	Block   *ssa.Block
}

func (BlockError) Error

func (v BlockError) Error() string

type FunctionError

type FunctionError struct {
	Message  string
	Function *ssa.Function
}

func (FunctionError) Error

func (v FunctionError) Error() string

type GlobalError

type GlobalError struct {
	Message string
	Global  *ssa.Global
}

func (GlobalError) Error

func (v GlobalError) Error() string

type InstrError

type InstrError struct {
	Message string
	Instr   ssa.Instruction
}

func (InstrError) Error

func (v InstrError) Error() string

Jump to

Keyboard shortcuts

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