The hasTypedParameters function has been moved to BytecodeAnalysis.h

This commit is contained in:
UtoECat 2023-12-16 03:47:34 +03:00
parent 1a202903cc
commit ce951e0426
4 changed files with 7 additions and 21 deletions

View file

@ -4,9 +4,10 @@
#include "Luau/Common.h"
#include <vector>
#include <stdint.h>
#include "lobject.h"
namespace Luau
{
namespace CodeGen
@ -17,5 +18,10 @@ struct IrFunction;
void buildBytecodeBlocks(IrFunction& function, const std::vector<uint8_t>& jumpTargets);
void analyzeBytecodeTypes(IrFunction& function);
static bool hasTypedParameters(Proto* proto)
{
return proto->typeinfo && proto->numparams != 0;
}
} // namespace CodeGen
} // namespace Luau

View file

@ -5,8 +5,6 @@
#include "Luau/IrData.h"
#include "Luau/IrUtils.h"
#include "IrProtoUtils.h"
namespace Luau
{
namespace CodeGen

View file

@ -8,7 +8,6 @@
#include "Luau/IrUtils.h"
#include "IrTranslation.h"
#include "IrProtoUtils.h"
#include "lapi.h"

View file

@ -1,17 +0,0 @@
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
#pragma once
#include "lobject.h"
namespace Luau
{
namespace CodeGen
{
static bool hasTypedParameters(Proto* proto)
{
return proto->typeinfo && proto->numparams != 0;
}
} // namespace CodeGen
} // namespace Luau