(reg string)
| 178 | } |
| 179 | |
| 180 | func GetRegIndex(reg string) uint32 { |
| 181 | value, ok := RegsNameMap[reg] |
| 182 | if !ok { |
| 183 | panic(fmt.Sprintf("ParseAsReg failed =>%s<=", reg)) |
| 184 | } |
| 185 | return value |
| 186 | } |
| 187 | |
| 188 | func GetRegName(index uint32) string { |
| 189 | for k, v := range RegsNameMap { |
no outgoing calls
no test coverage detected