MCPcopy Create free account
hub / github.com/decomp/decomp / label

Method label

cmd/ll2go/main.go:507–510  ·  view source on GitHub ↗

label converts the given LLVM IR basic block label to a corresponding Go identifier.

(name string)

Source from the content-addressed store, hash-verified

505// label converts the given LLVM IR basic block label to a corresponding Go
506// identifier.
507func (d *decompiler) label(name string) *ast.Ident {
508 name = "block_" + name
509 return ident(name)
510}
511
512// value converts the given LLVM IR value to a corresponding Go expression.
513func (d *decompiler) value(v value.Value) ast.Expr {

Callers 3

funcDeclMethod · 0.95
termBrMethod · 0.95
termCondBrMethod · 0.95

Calls 1

identFunction · 0.85

Tested by

no test coverage detected