Ignore:
Timestamp:
Jan 19, 2024, 2:42:58 AM (6 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
f988834
Parents:
8b4faf6
Message:

Draft Implementation for enum position pesudo function (posE). EnumPosExpr? is mostly irrelevant for now. It is used in development/code probing and will be removed later

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cpp

    r8b4faf6 r59c8dff  
    778778}
    779779
     780void CodeGenerator::postvisit( ast::EnumPosExpr const * expr ) {
     781        assertf( !options.genC, "EnumPosExpr should not reach code generation." );
     782        output << "__CFA_enumeration_pos(" << genType( expr->type, "", options ) << ")";
     783}
     784
    780785void CodeGenerator::postvisit( ast::LogicalExpr const * expr ) {
    781786        extension( expr );
Note: See TracChangeset for help on using the changeset viewer.