| 182 | } |
| 183 | |
| 184 | void IREmitter::SetCurrentCodeBlock(Ref Node) { |
| 185 | CurrentCodeBlock = Node; |
| 186 | LOGMAN_THROW_A_FMT(Node->Op(DualListData.DataBegin())->Op == OP_CODEBLOCK, "Node wasn't codeblock. It was '{}'", |
| 187 | IR::GetName(Node->Op(DualListData.DataBegin())->Op)); |
| 188 | SetWriteCursor(Node->Op(DualListData.DataBegin())->CW<IROp_CodeBlock>()->Begin.GetNode(DualListData.ListBegin())); |
| 189 | |
| 190 | // Constants are pooled only within a single block. |
| 191 | NrConstants = 0; |
| 192 | } |
| 193 | |
| 194 | } // namespace FEXCore::IR |
no test coverage detected