blob: ef816a9ca0026336f3b0c5fd59c162bf0c30dc0f [file] [log] [blame]
#include "ScalarType.h"
#include "Formatter.h"
namespace android {
ScalarType::ScalarType(Kind kind)
: mKind(kind) {
}
void ScalarType::dump(Formatter &out) const {
static const char *const kName[] = {
"char", "bool", "opaque", "int8_t", "uint8_t", "int16_t", "uint16_t",
"int32_t", "uint32_t", "int64_t", "uint64_t", "float", "double"
};
out << kName[mKind];
}
} // namespace android