| 102 | } |
| 103 | |
| 104 | BePointerType* 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 | |
| 124 | void BeContext::SetStructBody(BeStructType* structType, const SizedArrayImpl<BeType*>& types, bool packed) |
| 125 | { |
no outgoing calls
no test coverage detected