Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Autogen.cc

    r30f9072 r6ea87486  
    1010// Created On       : Thu Mar 03 15:45:56 2016
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Wed Jun 28 15:30:00 2017
    13 // Update Count     : 61
     12// Last Modified On : Fri Jul 14 16:41:00 2017
     13// Update Count     : 62
    1414//
     15
     16#include <list>
     17#include <iterator>
     18#include "SynTree/Visitor.h"
     19#include "SynTree/Type.h"
     20#include "SynTree/Statement.h"
     21#include "SynTree/TypeSubstitution.h"
     22#include "Common/utility.h"
     23#include "AddVisit.h"
     24#include "MakeLibCfa.h"
    1525#include "Autogen.h"
    16 
    17 #include <algorithm>               // for count_if
    18 #include <cassert>                 // for safe_dynamic_cast, assert, assertf
    19 #include <iterator>                // for back_insert_iterator, back_inserter
    20 #include <list>                    // for list, _List_iterator, list<>::iter...
    21 #include <set>                     // for set, _Rb_tree_const_iterator
    22 #include <vector>                  // for vector
    23 
    24 #include "AddVisit.h"              // for addVisit
    25 #include "Common/ScopedMap.h"      // for ScopedMap<>::const_iterator, Scope...
    26 #include "Common/utility.h"        // for cloneAll, operator+
    27 #include "GenPoly/DeclMutator.h"   // for DeclMutator
    28 #include "GenPoly/ScopedSet.h"     // for ScopedSet, ScopedSet<>::iterator
    29 #include "SymTab/Mangler.h"        // for Mangler
    30 #include "SynTree/Mutator.h"       // for maybeMutate
    31 #include "SynTree/Statement.h"     // for CompoundStmt, ReturnStmt, ExprStmt
    32 #include "SynTree/Type.h"          // for FunctionType, Type, TypeInstType
    33 #include "SynTree/Visitor.h"       // for maybeAccept, Visitor, acceptAll
    34 
    35 class Attribute;
     26#include "GenPoly/ScopedSet.h"
     27#include "Common/ScopedMap.h"
     28#include "SymTab/Mangler.h"
     29#include "GenPoly/DeclMutator.h"
    3630
    3731namespace SymTab {
     
    407401        void makeStructFunctions( StructDecl *aggregateDecl, StructInstType *refType, unsigned int functionNesting, std::list< Declaration * > & declsToAdd, const std::vector< FuncData > & data ) {
    408402                // Builtins do not use autogeneration.
    409                 if ( aggregateDecl->get_linkage() == LinkageSpec::Builtin ||
     403                if ( aggregateDecl->get_linkage() == LinkageSpec::BuiltinCFA ||
    410404                         aggregateDecl->get_linkage() == LinkageSpec::BuiltinC ) {
    411405                        return;
     
    518512                // Make function polymorphic in same parameters as generic union, if applicable
    519513                const std::list< TypeDecl* > & typeParams = aggregateDecl->get_parameters(); // List of type variables to be placed on the generated functions
    520 
     514               
    521515                // default ctor/dtor need only first parameter
    522516                // void ?{}(T *); void ^?{}(T *);
Note: See TracChangeset for help on using the changeset viewer.