Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/GenPoly.cc

    rbfae637 r8488c715  
    1616#include "GenPoly.h"
    1717
     18#include "SymTab/Mangler.h"
    1819#include "SynTree/Expression.h"
    1920#include "SynTree/Type.h"
     
    3738        ReferenceToType *isPolyRet( FunctionType *function ) {
    3839                if ( ! function->get_returnVals().empty() ) {
    39                         TyVarMap forallTypes( (TypeDecl::Kind)-1 );
     40                        TyVarMap forallTypes;
    4041                        makeTyVarMap( function, forallTypes );
    4142                        return (ReferenceToType*)isPolyType( function->get_returnVals().front()->get_type(), forallTypes );
     
    217218        }
    218219
     220        std::string sizeofName( Type *ty ) {
     221                return std::string( "_sizeof_" ) + SymTab::Mangler::mangleType( ty );
     222        }
     223
     224        std::string alignofName( Type *ty ) {
     225                return std::string( "_alignof_" ) + SymTab::Mangler::mangleType( ty );
     226        }
     227
     228        std::string offsetofName( Type* ty ) {
     229                return std::string( "_offsetof_" ) + SymTab::Mangler::mangleType( ty );
     230        }
     231
    219232} // namespace GenPoly
    220233
Note: See TracChangeset for help on using the changeset viewer.