Changeset 540ddb7d


Ignore:
Timestamp:
Feb 29, 2016, 2:23:52 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, string, with_gc
Children:
bdad1679, dbd8652
Parents:
33e6a2cc
Message:

Add qualifiers to VarArgsType?

Location:
src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/GenType.cc

    r33e6a2cc r540ddb7d  
    194194        void GenType::visit( VarArgsType *varArgsType ) {
    195195                typeString = "__builtin_va_list " + typeString;
    196                 // don't handle qualifiers, var args pack shouldn't have any
     196                handleQualifiers( varArgsType );
    197197        }
    198198
  • src/SymTab/Mangler.cc

    r33e6a2cc r540ddb7d  
    227227
    228228        void Mangler::visit( VarArgsType *varArgsType ) {
     229                printQualifiers( varArgsType );
    229230                mangleName << "VARGS";
    230231        }
  • src/SymTab/TypeEquality.cc

    r33e6a2cc r540ddb7d  
    194194
    195195        void TypeEquality::visit( VarArgsType *varArgsType ) {
    196                 // don't handle qualifiers; var args pack shouldn't have any
     196                handleQualifiers( varArgsType );
    197197                if ( ! dynamic_cast< VarArgsType * >( other ) ) {
    198198                        result = false;
  • src/SynTree/Type.h

    r33e6a2cc r540ddb7d  
    403403class VarArgsType : public Type {
    404404        VarArgsType();
     405        VarArgsType( Type::Qualifiers &tq );
    405406
    406407        virtual VarArgsType *clone() const { return new VarArgsType( *this ); }
  • src/SynTree/VarArgsType.cc

    r33e6a2cc r540ddb7d  
    1818VarArgsType::VarArgsType() : Type( Type::Qualifiers() ) {}
    1919
     20VarArgsType::VarArgsType( Type::Qualifiers &tq ) : Type( tq ) {}
     21
    2022void VarArgsType::print( std::ostream &os, int indent ) const {
    2123        Type::print( os, indent );
Note: See TracChangeset for help on using the changeset viewer.