mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Some refactoring and add GetCustomAttributes for Comptime
This commit is contained in:
parent
d52ebfa1db
commit
3df708779d
8 changed files with 557 additions and 97 deletions
|
@ -328,6 +328,9 @@ enum CeFunctionKind
|
|||
CeFunctionKind_Type_GetCustomAttribute,
|
||||
CeFunctionKind_Field_GetCustomAttribute,
|
||||
CeFunctionKind_Method_GetCustomAttribute,
|
||||
CeFunctionKind_Type_GetCustomAttributeType,
|
||||
CeFunctionKind_Field_GetCustomAttributeType,
|
||||
CeFunctionKind_Method_GetCustomAttributeType,
|
||||
CeFunctionKind_GetMethodCount,
|
||||
CeFunctionKind_GetMethod,
|
||||
CeFunctionKind_Method_ToString,
|
||||
|
@ -908,7 +911,8 @@ public:
|
|||
bool CheckMemory(addr_ce addr, int32 size);
|
||||
bool GetStringFromAddr(addr_ce strInstAddr, StringImpl& str);
|
||||
bool GetStringFromStringView(addr_ce addr, StringImpl& str);
|
||||
bool GetCustomAttribute(BfModule* module, BfIRConstHolder* constHolder, BfCustomAttributes* customAttributes, int attributeTypeId, addr_ce resultAddr);
|
||||
bool GetCustomAttribute(BfModule* module, BfIRConstHolder* constHolder, BfCustomAttributes* customAttributes, int attributeIdx, addr_ce resultAddr);
|
||||
BfType* GetCustomAttributeType(BfCustomAttributes* customAttributes, int attributeIdx);
|
||||
|
||||
bool WriteConstant(BfModule* module, addr_ce addr, BfConstant* constant, BfType* type, bool isParams = false);
|
||||
BfIRValue CreateConstant(BfModule* module, uint8* ptr, BfType* type, BfType** outType = NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue