MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / endSwitch

Method endSwitch

SPIRV/SpvBuilder.cpp:4550–4560  ·  view source on GitHub ↗

Comments in header

Source from the content-addressed store, hash-verified

4548
4549// Comments in header
4550void Builder::endSwitch(std::vector<Block*>& /*segmentBlock*/)
4551{
4552 // Close out previous segment by jumping, if necessary, to next segment
4553 if (! buildPoint->isTerminated())
4554 addSwitchBreak(true);
4555
4556 switchMerges.top()->getParent().addBlock(switchMerges.top());
4557 setBuildPoint(switchMerges.top());
4558
4559 switchMerges.pop();
4560}
4561
4562Block& Builder::makeNewBlock()
4563{

Callers 1

visitSwitchMethod · 0.80

Calls 3

isTerminatedMethod · 0.80
addBlockMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected