MCPcopy Create free account
hub / github.com/csyonghe/Spire / PrintUnaryInstr

Method PrintUnaryInstr

Source/SpireCore/CLikeCodeGen.cpp:385–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383 }
384
385 void CLikeCodeGen::PrintUnaryInstr(CodeGenContext & ctx, UnaryInstruction * instr)
386 {
387 auto varName = ctx.DefineVariable(instr);
388 ctx.Body << varName << " = ";
389 PrintUnaryInstrExpr(ctx, instr);
390 ctx.Body << ";\n";
391 }
392
393 void CLikeCodeGen::PrintAllocVarInstrExpr(CodeGenContext & ctx, AllocVarInstruction * instr)
394 {

Callers

nothing calls this directly

Calls 1

DefineVariableMethod · 0.80

Tested by

no test coverage detected