2 * Copyright 2014, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
7 #include "SyntheticPrimitiveType.h"
14 SyntheticPrimitiveType::SyntheticPrimitiveType(uint32 typeConstant
)
17 fTypeConstant(typeConstant
),
25 SyntheticPrimitiveType::~SyntheticPrimitiveType()
31 SyntheticPrimitiveType::TypeConstant() const
38 SyntheticPrimitiveType::ImageID() const
45 SyntheticPrimitiveType::ID() const
52 SyntheticPrimitiveType::Name() const
59 SyntheticPrimitiveType::Kind() const
61 return TYPE_PRIMITIVE
;
66 SyntheticPrimitiveType::ByteSize() const
68 return BVariant::SizeOfType(fTypeConstant
);
73 SyntheticPrimitiveType::ResolveObjectDataLocation(
74 const ValueLocation
& objectLocation
, ValueLocation
*& _location
)
77 return B_NOT_SUPPORTED
;
82 SyntheticPrimitiveType::ResolveObjectDataLocation(target_addr_t objectAddress
,
83 ValueLocation
*& _location
)
86 return B_NOT_SUPPORTED
;
91 SyntheticPrimitiveType::_Init()
93 fID
.SetToFormat("%p", this);
94 fName
.SetTo(UiUtils::TypeCodeToString(fTypeConstant
));