Fix diagnostic for primitive types

This commit is contained in:
2025-02-11 01:37:55 +01:00
parent 4bf88a92e8
commit 33aca4cc07
19 changed files with 473 additions and 626 deletions

View File

@ -17,6 +17,7 @@ along with GCC; see the file COPYING3. If not see
#include "elna/gcc/elna-diagnostic.h"
#include "elna/gcc/elna-tree.h"
#include "elna/gcc/elna1.h"
namespace elna
{
@ -33,23 +34,27 @@ namespace gcc
{
gcc_assert(TYPE_P(type));
if (type == integer_type_node)
if (type == elna_int_type_node)
{
return "Int";
}
else if (type == unsigned_type_node)
else if (type == elna_word_type_node)
{
return "Word";
}
else if (type == boolean_type_node)
else if (type == elna_bool_type_node)
{
return "Bool";
}
else if (type == double_type_node)
else if (type == elna_byte_type_node)
{
return "Byte";
}
else if (type == elna_float_type_node)
{
return "Float";
}
else if (type == unsigned_char_type_node)
else if (type == elna_char_type_node)
{
return "Char";
}