35 type_system->GetBuiltinTypeForEncodingAndBitSize(
eEncodingSint, 32);
41 if (!value_sp || !timescale_sp || !flags_sp)
44 auto value = value_sp->GetValueAsUnsigned(0);
45 auto timescale = (int32_t)timescale_sp->GetValueAsUnsigned(
48 auto flags =
Flags(flags_sp->GetValueAsUnsigned(0) &
51 const unsigned int FlagPositiveInf = 4;
52 const unsigned int FlagNegativeInf = 8;
53 const unsigned int FlagIndefinite = 16;
55 if (flags.AnySet(FlagIndefinite)) {
56 stream.
Printf(
"indefinite");
60 if (flags.AnySet(FlagPositiveInf)) {
65 if (flags.AnySet(FlagNegativeInf)) {
74 stream.
Printf(
"%" PRId64
" seconds", value);
77 stream.
Printf(
"%" PRId64
" half seconds", value);
80 stream.
Printf(
"%" PRId64
" third%sof a second", value,
81 value == 1 ?
" " :
"s ");
84 stream.
Printf(
"%" PRId64
" %" PRId32
"th%sof a second", value, timescale,
85 value == 1 ?
" " :
"s ");
Generic representation of a type in a programming language.
TypeSystemSPWrapper GetTypeSystem() const
Accessors.
A stream class that can stream formatted output to a file.
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
virtual CompilerType GetBuiltinTypeForEncodingAndBitSize(lldb::Encoding encoding, size_t bit_size)=0
CompilerType GetCompilerType()
virtual lldb::ValueObjectSP GetSyntheticChildAtOffset(uint32_t offset, const CompilerType &type, bool can_create, ConstString name_const_str=ConstString())
A class that represents a running process on the host machine.
@ eEncodingSint
signed integer