vhdlpp: Minor code cleaning.

This commit is contained in:
Maciej Suminski 2014-10-09 16:52:35 +02:00
parent e896f0c8e6
commit 76aab15798
3 changed files with 4 additions and 14 deletions

View File

@ -879,11 +879,8 @@ const VType* ExpNameALL::probe_type(Entity*, Architecture*) const
return 0;
}
const VType* ExpRelation::probe_type(Entity*ent, Architecture*arc) const
const VType* ExpRelation::probe_type(Entity*, Architecture*) const
{
/* const VType*type1 = */ peek_operand1()->probe_type(ent, arc);
/* const VType*type2 = */ peek_operand2()->probe_type(ent, arc);
return &primitive_BOOLEAN;
}

View File

@ -391,16 +391,6 @@ int ExpCharacter::emit_primitive_bit_(ostream&out, Entity*, Architecture*,
switch (etype->type()) {
case VTypePrimitive::BOOLEAN:
case VTypePrimitive::BIT:
switch (value_) {
case '0':
case '1':
out << "1'b" << value_;
return 0;
default:
break;
}
break;
case VTypePrimitive::STDLOGIC:
switch (value_) {
case '0':

View File

@ -146,6 +146,9 @@ void VTypePrimitive::write_to_stream(ostream&fd) const
case STDLOGIC:
fd << "std_logic";
break;
case CHARACTER:
fd << "character";
break;
case BOOLEAN:
fd << "boolean";
break;