localIdent converts the given LLVM IR local identifier to a corresponding Go identifier.
(name string)
| 472 | // localIdent converts the given LLVM IR local identifier to a corresponding Go |
| 473 | // identifier. |
| 474 | func (d *decompiler) localIdent(name string) *ast.Ident { |
| 475 | if isID(name) { |
| 476 | name = "_" + name |
| 477 | } |
| 478 | return ident(name) |
| 479 | } |
| 480 | |
| 481 | // isID reports if the given string is an unnamed identifier. |
| 482 | func isID(s string) bool { |
no test coverage detected