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

     1  // Code generated by "stringer -linecomment -type TLSModel"; 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[TLSModelNone-0]
    12  	_ = x[TLSModelGeneric-1]
    13  	_ = x[TLSModelInitialExec-2]
    14  	_ = x[TLSModelLocalDynamic-3]
    15  	_ = x[TLSModelLocalExec-4]
    16  }
    17  
    18  const _TLSModel_name = "nonegenericinitialexeclocaldynamiclocalexec"
    19  
    20  var _TLSModel_index = [...]uint8{0, 4, 11, 22, 34, 43}
    21  
    22  func (i TLSModel) String() string {
    23  	if i >= TLSModel(len(_TLSModel_index)-1) {
    24  		return "TLSModel(" + strconv.FormatInt(int64(i), 10) + ")"
    25  	}
    26  	return _TLSModel_name[_TLSModel_index[i]:_TLSModel_index[i+1]]
    27  }