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

Method globalIdent

cmd/ll2go/main.go:465–470  ·  view source on GitHub ↗

globalIdent converts the given LLVM IR global identifier to a corresponding Go identifier.

(name string)

Source from the content-addressed store, hash-verified

463// globalIdent converts the given LLVM IR global identifier to a corresponding
464// Go identifier.
465func (d *decompiler) globalIdent(name string) *ast.Ident {
466 if isID(name) {
467 name = "_" + name
468 }
469 return ident(name)
470}
471
472// localIdent converts the given LLVM IR local identifier to a corresponding Go
473// identifier.

Callers 6

constantMethod · 0.95
instCallMethod · 0.95
globalDeclMethod · 0.95
pointerToConstMethod · 0.95
funcDeclMethod · 0.95
valueMethod · 0.95

Calls 2

isIDFunction · 0.85
identFunction · 0.85

Tested by

no test coverage detected