Provide half floating point support as a storage only type.

Lack of half FP was a regression compared to llvm-gcc.

llvm-svn: 142016
This commit is contained in:
Anton Korobeynikov
2011-10-14 23:23:15 +00:00
parent 1f64b59872
commit f0c267e6e0
36 changed files with 224 additions and 43 deletions

View File

@@ -257,6 +257,7 @@ bool Declarator::isDeclarationOfFunction() const {
case TST_enum:
case TST_error:
case TST_float:
case TST_half:
case TST_int:
case TST_struct:
case TST_union:
@@ -373,6 +374,7 @@ const char *DeclSpec::getSpecifierName(DeclSpec::TST T) {
case DeclSpec::TST_char16: return "char16_t";
case DeclSpec::TST_char32: return "char32_t";
case DeclSpec::TST_int: return "int";
case DeclSpec::TST_half: return "half";
case DeclSpec::TST_float: return "float";
case DeclSpec::TST_double: return "double";
case DeclSpec::TST_bool: return "_Bool";