| 166 | // ============================================================================ |
| 167 | |
| 168 | Label Assembler::newLabel() { |
| 169 | uint32_t id = 0; |
| 170 | if (!_lastError) { |
| 171 | ASMJIT_ASSERT(_code != nullptr); |
| 172 | Error err = _code->newLabelId(id); |
| 173 | if (ASMJIT_UNLIKELY(err)) setLastError(err); |
| 174 | } |
| 175 | return Label(id); |
| 176 | } |
| 177 | |
| 178 | Label Assembler::newNamedLabel(const char* name, size_t nameLength, uint32_t type, uint32_t parentId) { |
| 179 | uint32_t id = 0; |
no test coverage detected