Ignore:
Timestamp:
Jun 25, 2024, 12:09:43 PM (18 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
d96d4f0
Parents:
f3b67b6 (diff), 5eb3f65 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/ImplementEnumFunc.cpp

    rf3b67b6 r6803ff1  
    175175ast::FunctionDecl* EnumAttrFuncGenerator::genPosnProto() const {
    176176    return genProto(
    177         "posE",
     177        "posn",
    178178        {new ast::ObjectDecl(getLocation(), "_i", new ast::EnumInstType(decl))},
    179179        {new ast::ObjectDecl(getLocation(), "_ret",
     
    183183ast::FunctionDecl* EnumAttrFuncGenerator::genLabelProto() const {
    184184        return genProto(
    185                 "labelE",
     185                "label",
    186186                {new ast::ObjectDecl(getLocation(), "_i", new ast::EnumInstType(decl))},
    187187                {new ast::ObjectDecl(
     
    193193        if (decl->base)
    194194                return genProto(
    195                         "valueE",
     195                        "value",
    196196                        {new ast::ObjectDecl(getLocation(), "_i", new ast::EnumInstType(decl))},
    197197                        {new ast::ObjectDecl(getLocation(), "_ret",
     
    203203ast::FunctionDecl* EnumAttrFuncGenerator::genQuasiValueProto() const {
    204204        return genProto(
    205                 "valueE",
     205                "value",
    206206                {new ast::ObjectDecl(getLocation(), "_i", new ast::EnumInstType(decl))},
    207207                {new ast::ObjectDecl(getLocation(), "_ret",
     
    254254        auto param = params.front();
    255255        ast::UntypedExpr* untyped = ast::UntypedExpr::createCall(
    256                 func->location, "posE", { new ast::VariableExpr(func->location, param) });
     256                func->location, "posn", { new ast::VariableExpr(func->location, param) });
    257257        func->stmts = new ast::CompoundStmt(
    258258                func->location, {new ast::ReturnStmt(func->location, untyped)}
Note: See TracChangeset for help on using the changeset viewer.