| 510 | } |
| 511 | |
| 512 | Label BaseBuilder::new_named_label(const char* name, size_t name_size, LabelType type, uint32_t parent_id) { |
| 513 | Label label; |
| 514 | |
| 515 | if (ASMJIT_LIKELY(_code)) { |
| 516 | uint32_t label_id; |
| 517 | Error err = _code->new_named_label_id(Out(label_id), name, name_size, type, parent_id); |
| 518 | |
| 519 | if (ASMJIT_UNLIKELY(err != Error::kOk)) { |
| 520 | report_error(err); |
| 521 | } |
| 522 | else { |
| 523 | if (ASMJIT_LIKELY(Builder_new_label_internal(this, label_id) == Error::kOk)) { |
| 524 | label.set_id(label_id); |
| 525 | } |
| 526 | } |
| 527 | } |
| 528 | |
| 529 | return label; |
| 530 | } |
| 531 | |
| 532 | Error BaseBuilder::bind(const Label& label) { |
| 533 | LabelNode* node; |
nothing calls this directly
no test coverage detected