Go to the documentation of this file.
39 if (!value_sp || !timescale_sp || !flags_sp)
42 auto value = value_sp->GetValueAsUnsigned(0);
43 auto timescale = (int32_t)timescale_sp->GetValueAsUnsigned(
46 auto flags =
Flags(flags_sp->GetValueAsUnsigned(0) &
49 const unsigned int FlagPositiveInf = 4;
50 const unsigned int FlagNegativeInf = 8;
51 const unsigned int FlagIndefinite = 16;
53 if (flags.AnySet(FlagIndefinite)) {
54 stream.
Printf(
"indefinite");
58 if (flags.AnySet(FlagPositiveInf)) {
63 if (flags.AnySet(FlagNegativeInf)) {
75 stream.
Printf(
"%" PRId64
" seconds", value);
78 stream.
Printf(
"%" PRId64
" half seconds", value);
81 stream.
Printf(
"%" PRId64
" third%sof a second", value,
82 value == 1 ?
" " :
"s ");
85 stream.
Printf(
"%" PRId64
" %" PRId32
"th%sof a second", value, timescale,
86 value == 1 ?
" " :
"s ");
virtual CompilerType GetBuiltinTypeForEncodingAndBitSize(lldb::Encoding encoding, size_t bit_size)=0
@ eEncodingSint
signed integer
virtual lldb::ValueObjectSP GetSyntheticChildAtOffset(uint32_t offset, const CompilerType &type, bool can_create, ConstString name_const_str=ConstString())
TypeSystem * GetTypeSystem() const
Accessors.
CompilerType GetCompilerType()
Generic representation of a type in a programming language.
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
A class that represents a running process on the host machine.
Interface for representing a type system.