Commit acb4991d authored by Brendan Gregg's avatar Brendan Gregg Committed by GitHub

Merge pull request #177 from sandip4n/ppc64-dev

Extend support for char type
parents f2b0039c ccc8649c
...@@ -47,6 +47,7 @@ static SizedType get_sized_type(CXType clang_type) ...@@ -47,6 +47,7 @@ static SizedType get_sized_type(CXType clang_type)
switch (clang_type.kind) switch (clang_type.kind)
{ {
case CXType_Char_S: case CXType_Char_S:
case CXType_Char_U:
case CXType_SChar: case CXType_SChar:
case CXType_UChar: case CXType_UChar:
case CXType_Short: case CXType_Short:
...@@ -83,7 +84,7 @@ static SizedType get_sized_type(CXType clang_type) ...@@ -83,7 +84,7 @@ static SizedType get_sized_type(CXType clang_type)
{ {
auto elem_type = clang_getArrayElementType(clang_type); auto elem_type = clang_getArrayElementType(clang_type);
auto size = clang_getArraySize(clang_type); auto size = clang_getArraySize(clang_type);
if (elem_type.kind == CXType_Char_S) if (elem_type.kind == CXType_Char_S || elem_type.kind == CXType_Char_U)
{ {
return SizedType(Type::string, size); return SizedType(Type::string, size);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment