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

Method GetPointerTo

IDEHelper/Backend/BeContext.cpp:104–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104BePointerType* BeContext::GetPointerTo(BeType* beType)
105{
106 if (beType->mPointerType == NULL)
107 {
108 BePointerType* pointerType = mTypes.Alloc<BePointerType>();
109 pointerType->mTypeCode = BeTypeCode_Pointer;
110 pointerType->mElementType = beType;
111 pointerType->mSize = mPointerSize;
112 pointerType->mAlign = mPointerSize;
113 beType->mPointerType = pointerType;
114
115 /*if (beType->IsSizedArray())
116 {
117 auto sizedArrayType = (BeSizedArrayType*)beType;
118 pointerType->mElementType = sizedArrayType->mElementType;
119 }*/
120 }
121 return beType->mPointerType;
122}
123
124void BeContext::SetStructBody(BeStructType* structType, const SizedArrayImpl<BeType*>& types, bool packed)
125{

Callers 14

GetTypeMethod · 0.45
CreateFunctionMethod · 0.45
ReadMethod · 0.45
HandleNextCmdMethod · 0.45
GetOperandMethod · 0.45
GetTypeMethod · 0.45
GetCallArgVRegMethod · 0.45
CreateStoreMethod · 0.45
CreateMemSetMethod · 0.45
DoTLSSetupMethod · 0.45
DoFrameObjPassMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected