Ignore:
Timestamp:
Nov 8, 2022, 4:12:00 PM (21 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master
Children:
6411b7d
Parents:
44547b0
Message:

Cleaning old box pass for easier translation. Adding a bunch of const qualifiers. Hopefully this will remove some ambiguity about where changes happen, but const is dropped quickly in the old ast.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/GenPoly.h

    r44547b0 r4da152a  
    3434        /// Replaces a TypeInstType by its referrent in the environment, if applicable
    3535        Type* replaceTypeInst( Type* type, const TypeSubstitution* env );
     36        const Type* replaceTypeInst( const Type* type, const TypeSubstitution* env );
    3637        const ast::Type * replaceTypeInst( const ast::Type *, const ast::TypeSubstitution * );
    3738
     
    116117
    117118        /// Gets the mangled name of this type; alias for SymTab::Mangler::mangleType().
    118         inline std::string mangleType( Type *ty ) { return SymTab::Mangler::mangleType( ty ); }
     119        inline std::string mangleType( const Type *ty ) { return SymTab::Mangler::mangleType( ty ); }
    119120
    120121        /// Gets the name of the sizeof parameter for the type, given its mangled name
Note: See TracChangeset for help on using the changeset viewer.