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

Method endFunc

libraries/asmjit/asmjit/base/codecompiler.cpp:176–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176CBSentinel* CodeCompiler::endFunc() {
177 CCFunc* func = getFunc();
178 if (!func) {
179 // TODO:
180 return nullptr;
181 }
182
183 // Add the local constant pool at the end of the function (if exists).
184 if (_localConstPool) {
185 setCursor(func->getEnd()->getPrev());
186 addNode(_localConstPool);
187 _localConstPool = nullptr;
188 }
189
190 // Mark as finished.
191 func->_isFinished = true;
192 _func = nullptr;
193
194 CBSentinel* end = func->getEnd();
195 setCursor(end);
196 return end;
197}
198
199// ============================================================================
200// [asmjit::CodeCompiler - Ret]

Callers 1

CodegenMethod · 0.80

Calls 3

getFuncFunction · 0.85
getPrevMethod · 0.45
getEndMethod · 0.45

Tested by

no test coverage detected