String returns a string representation of the getelementptr index.
()
| 93 | |
| 94 | // String returns a string representation of the getelementptr index. |
| 95 | func (index *Index) String() string { |
| 96 | // OptInrange Type Constant |
| 97 | if index.InRange { |
| 98 | return fmt.Sprintf("inrange %s", index.Constant) |
| 99 | } |
| 100 | return index.Constant.String() |
| 101 | } |
| 102 | |
| 103 | // ### [ Helper functions ] #################################################### |
| 104 |