| 1 | // Code generated by make_textflag.go. DO NOT EDIT. |
| 2 | |
| 3 | package attr |
| 4 | |
| 5 | // Attribute values defined in textflag.h. |
| 6 | const ( |
| 7 | // Don't profile the marked routine. This flag is deprecated. |
| 8 | NOPROF Attribute = 1 |
| 9 | |
| 10 | // It is ok for the linker to get multiple of these symbols. It will |
| 11 | // pick one of the duplicates to use. |
| 12 | DUPOK Attribute = 2 |
| 13 | |
| 14 | // Don't insert stack check preamble. |
| 15 | NOSPLIT Attribute = 4 |
| 16 | |
| 17 | // Put this data in a read-only section. |
| 18 | RODATA Attribute = 8 |
| 19 | |
| 20 | // This data contains no pointers. |
| 21 | NOPTR Attribute = 16 |
| 22 | |
| 23 | // This is a wrapper function and should not count as disabling 'recover'. |
| 24 | WRAPPER Attribute = 32 |
| 25 | |
| 26 | // This function uses its incoming context register. |
| 27 | NEEDCTXT Attribute = 64 |
| 28 | |
| 29 | // Allocate a word of thread local storage and store the offset from the |
| 30 | // thread local base to the thread local storage in this variable. |
| 31 | TLSBSS Attribute = 256 |
| 32 | |
| 33 | // Do not insert instructions to allocate a stack frame for this function. |
| 34 | // Only valid on functions that declare a frame size of 0. |
| 35 | NOFRAME Attribute = 512 |
| 36 | |
| 37 | // Function can call reflect.Type.Method or reflect.Type.MethodByName. |
| 38 | REFLECTMETHOD Attribute = 1024 |
| 39 | |
| 40 | // Function is the top of the call stack. Call stack unwinders should stop |
| 41 | // at this function. |
| 42 | TOPFRAME Attribute = 2048 |
| 43 | ) |
| 44 | |
| 45 | var attrname = map[Attribute]string{ |
| 46 | NOPROF: "NOPROF", |
| 47 | DUPOK: "DUPOK", |
| 48 | NOSPLIT: "NOSPLIT", |
| 49 | RODATA: "RODATA", |
| 50 | NOPTR: "NOPTR", |
| 51 | WRAPPER: "WRAPPER", |
| 52 | NEEDCTXT: "NEEDCTXT", |
| 53 | TLSBSS: "TLSBSS", |
| 54 | NOFRAME: "NOFRAME", |
| 55 | REFLECTMETHOD: "REFLECTMETHOD", |
| 56 | TOPFRAME: "TOPFRAME", |
| 57 | } |
| 58 | |
| 59 | // NOPROF reports whether the NOPROF flag is set. |
| 60 | func (a Attribute) NOPROF() bool { return (a & NOPROF) != 0 } |
| 61 | |
| 62 | // DUPOK reports whether the DUPOK flag is set. |
| 63 | func (a Attribute) DUPOK() bool { return (a & DUPOK) != 0 } |
| 64 | |
| 65 | // NOSPLIT reports whether the NOSPLIT flag is set. |
| 66 | func (a Attribute) NOSPLIT() bool { return (a & NOSPLIT) != 0 } |
| 67 | |
| 68 | // RODATA reports whether the RODATA flag is set. |
| 69 | func (a Attribute) RODATA() bool { return (a & RODATA) != 0 } |
| 70 | |
| 71 | // NOPTR reports whether the NOPTR flag is set. |
| 72 | func (a Attribute) NOPTR() bool { return (a & NOPTR) != 0 } |
| 73 | |
| 74 | // WRAPPER reports whether the WRAPPER flag is set. |
| 75 | func (a Attribute) WRAPPER() bool { return (a & WRAPPER) != 0 } |
| 76 | |
| 77 | // NEEDCTXT reports whether the NEEDCTXT flag is set. |
| 78 | func (a Attribute) NEEDCTXT() bool { return (a & NEEDCTXT) != 0 } |
| 79 | |
| 80 | // TLSBSS reports whether the TLSBSS flag is set. |
| 81 | func (a Attribute) TLSBSS() bool { return (a & TLSBSS) != 0 } |
| 82 | |
| 83 | // NOFRAME reports whether the NOFRAME flag is set. |
| 84 | func (a Attribute) NOFRAME() bool { return (a & NOFRAME) != 0 } |
| 85 | |
| 86 | // REFLECTMETHOD reports whether the REFLECTMETHOD flag is set. |
| 87 | func (a Attribute) REFLECTMETHOD() bool { return (a & REFLECTMETHOD) != 0 } |
| 88 | |
| 89 | // TOPFRAME reports whether the TOPFRAME flag is set. |
| 90 | func (a Attribute) TOPFRAME() bool { return (a & TOPFRAME) != 0 } |