MCPcopy Create free account
hub / github.com/beefytech/Beef / CreateCall

Method CreateCall

IDEHelper/Backend/BeModule.cpp:3532–3544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3530}
3531
3532BeCallInst* BeModule::CreateCall(BeValue* func, const SizedArrayImpl<BeValue*>& args)
3533{
3534 auto inst = mOwnedValues.Alloc<BeCallInst>();
3535 inst->mFunc = func;
3536 if (!args.IsEmpty())
3537 {
3538 inst->mArgs.resize(args.size());
3539 for (int i = 0; i < (int)args.size(); i++)
3540 inst->mArgs[i].mValue = args[i];
3541 }
3542 AddInst(inst);
3543 return inst;
3544}
3545
3546BeConstant* BeModule::GetConstant(BeType* type, double floatVal)
3547{

Callers 1

HandleNextCmdMethod · 0.45

Calls 3

IsEmptyMethod · 0.45
resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected