Ignore:
Timestamp:
Sep 1, 2022, 1:27:52 PM (20 months ago)
Author:
JiadaL <j82liang@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
12df6fe
Parents:
def751f
Message:

Fix up the QualifiedNameExpr?. It should now work on both old AST and new AST. There are some known bugs to fix so make all-tests will fail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    rdef751f rb0d9ff7  
    689689                        output << opInfo->symbol;
    690690                } else {
    691                         // if (dynamic_cast<EnumInstType *>(variableExpr->get_var()->get_type())
    692                         // && dynamic_cast<EnumInstType *>(variableExpr->get_var()->get_type())->baseEnum->base) {
    693                         //      output << '(' <<genType(dynamic_cast<EnumInstType *>(variableExpr->get_var()->get_type())->baseEnum->base, "", options) << ')';
    694                         // }
    695691                        output << mangleName( variableExpr->get_var() );
    696692                } // if
     
    911907        }
    912908
     909        // QualifiedNameExpr should not reach to CodeGen.
     910        // FixQualifiedName Convert QualifiedNameExpr to VariableExpr
     911        void CodeGenerator::postvisit( QualifiedNameExpr * expr ) {
     912                output << "/* label */" << mangleName(expr->var);
     913        }
    913914
    914915        // *** Statements
Note: See TracChangeset for help on using the changeset viewer.