build

package
v0.0.0-...-1ff96fa Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2014 License: BSD-3-Clause, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	build.Context

	// LLVM triple
	Triple string
}

func ContextFromTriple

func ContextFromTriple(triple string) (*Context, error)

ContextFromTriple returns a new go/build.Context with GOOS and GOARCH configured from the given triple.

type LLVMIRReadCloser

type LLVMIRReadCloser struct {
	io.ReadCloser
	// contains filtered or unexported fields
}

LLVMIRReadCloser wraps an io.ReadCloser, transforming the leading comments of the file such that they are preceded with "//" rather than standard LLVM IR comments ("; blah").

This type is intended to be used in the OpenFile field of go/build's Context type.

func NewLLVMIRReader

func NewLLVMIRReader(r io.ReadCloser) *LLVMIRReadCloser

func (*LLVMIRReadCloser) Read

func (r *LLVMIRReadCloser) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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