github.com/llir/llvm@v0.3.6/ir/enum/emissionkind_string.go (about)

     1  // Code generated by "stringer -linecomment -type EmissionKind"; DO NOT EDIT.
     2  
     3  package enum
     4  
     5  import "strconv"
     6  
     7  func _() {
     8  	// An "invalid array index" compiler error signifies that the constant values have changed.
     9  	// Re-run the stringer command to generate them again.
    10  	var x [1]struct{}
    11  	_ = x[EmissionKindNoDebug-0]
    12  	_ = x[EmissionKindFullDebug-1]
    13  	_ = x[EmissionKindLineTablesOnly-2]
    14  	_ = x[EmissionKindDebugDirectivesOnly-3]
    15  }
    16  
    17  const _EmissionKind_name = "NoDebugFullDebugLineTablesOnlyDebugDirectivesOnly"
    18  
    19  var _EmissionKind_index = [...]uint8{0, 7, 16, 30, 49}
    20  
    21  func (i EmissionKind) String() string {
    22  	if i < 0 || i >= EmissionKind(len(_EmissionKind_index)-1) {
    23  		return "EmissionKind(" + strconv.FormatInt(int64(i), 10) + ")"
    24  	}
    25  	return _EmissionKind_name[_EmissionKind_index[i]:_EmissionKind_index[i+1]]
    26  }