| 237 | // ============================================================================ |
| 238 | |
| 239 | size_t CodeHolder::getCodeSize() const noexcept { |
| 240 | // Reflect all changes first. |
| 241 | const_cast<CodeHolder*>(this)->sync(); |
| 242 | |
| 243 | // TODO: Support sections. |
| 244 | return _sections[0]->_buffer._length + getTrampolinesSize(); |
| 245 | } |
| 246 | |
| 247 | // ============================================================================ |
| 248 | // [asmjit::CodeHolder - Logging & Error Handling] |
no test coverage detected