MCPcopy Create free account
hub / github.com/ZDoom/Raze / newLabelLink

Method newLabelLink

libraries/asmjit/asmjit/base/codeholder.cpp:409–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407} // anonymous namespace
408
409LabelLink* CodeHolder::newLabelLink(LabelEntry* le, uint32_t sectionId, size_t offset, intptr_t rel) noexcept {
410 LabelLink* link = _baseHeap.allocT<LabelLink>();
411 if (ASMJIT_UNLIKELY(!link)) return nullptr;
412
413 link->prev = le->_links;
414 le->_links = link;
415
416 link->sectionId = sectionId;
417 link->relocId = RelocEntry::kInvalidId;
418 link->offset = offset;
419 link->rel = rel;
420
421 _unresolvedLabelsCount++;
422 return link;
423}
424
425Error CodeHolder::newLabelId(uint32_t& idOut) noexcept {
426 idOut = 0;

Callers 2

embedLabelMethod · 0.80
_emitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected