mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
The hasTypedParameters function has been moved to BytecodeAnalysis.h
This commit is contained in:
parent
1a202903cc
commit
ce951e0426
4 changed files with 7 additions and 21 deletions
|
@ -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
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
#include "Luau/IrData.h"
|
||||
#include "Luau/IrUtils.h"
|
||||
|
||||
#include "IrProtoUtils.h"
|
||||
|
||||
namespace Luau
|
||||
{
|
||||
namespace CodeGen
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include "Luau/IrUtils.h"
|
||||
|
||||
#include "IrTranslation.h"
|
||||
#include "IrProtoUtils.h"
|
||||
|
||||
#include "lapi.h"
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue