blob: ef816a9ca0026336f3b0c5fd59c162bf0c30dc0f [file] [log] [blame]
Andreas Huberc9410c72016-07-28 12:18:40 -07001#include "ScalarType.h"
2
3#include "Formatter.h"
4
5namespace android {
6
7ScalarType::ScalarType(Kind kind)
8 : mKind(kind) {
9}
10
11void ScalarType::dump(Formatter &out) const {
12 static const char *const kName[] = {
13 "char", "bool", "opaque", "int8_t", "uint8_t", "int16_t", "uint16_t",
14 "int32_t", "uint32_t", "int64_t", "uint64_t", "float", "double"
15 };
16 out << kName[mKind];
17}
18
19} // namespace android
20