build

package
v0.0.0-...-7bbe4ba Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2013 License: BSD-3-Clause, MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context

func Context(triple string) (*build.Context, error)

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

Types

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