Changeset 9ddcee1 for src/CodeGen


Ignore:
Timestamp:
Feb 1, 2024, 5:13:04 PM (20 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
020fa10
Parents:
496ffc17
Message:

Remove EnumPosExpr, an early design that no longer used. The implementation of the feature has been replaced by ReplacePseudoFunc

Location:
src/CodeGen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cpp

    r496ffc17 r9ddcee1  
    778778}
    779779
    780 void 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 
    785780void CodeGenerator::postvisit( ast::LogicalExpr const * expr ) {
    786781        extension( expr );
  • src/CodeGen/CodeGenerator.hpp

    r496ffc17 r9ddcee1  
    7777        void postvisit( ast::OffsetPackExpr const * );
    7878        void postvisit( ast::LogicalExpr const * );
    79         void postvisit( ast::EnumPosExpr const * );
    8079        void postvisit( ast::ConditionalExpr const * );
    8180        void postvisit( ast::CommaExpr const * );
Note: See TracChangeset for help on using the changeset viewer.