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

Method typeIdent

cmd/ll2go/main.go:456–461  ·  view source on GitHub ↗

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

(name string)

Source from the content-addressed store, hash-verified

454// globalIdent converts the given LLVM IR type identifier to a corresponding Go
455// identifier.
456func (d *decompiler) typeIdent(name string) *ast.Ident {
457 if isID(name) {
458 name = "_" + name
459 }
460 return ident(name)
461}
462
463// globalIdent converts the given LLVM IR global identifier to a corresponding
464// Go identifier.

Callers 2

goTypeMethod · 0.95
typeDefMethod · 0.95

Calls 2

isIDFunction · 0.85
identFunction · 0.85

Tested by

no test coverage detected