Changeset 974906e for src/MakeLibCfa.cc


Ignore:
Timestamp:
Jan 11, 2016, 2:48:05 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
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, with_gc
Children:
a56767c
Parents:
1e9d87b
Message:

propagate maybeConstructed flag through system, begin create constructor/destructor statements for further processing by Resolver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/MakeLibCfa.cc

    r1e9d87b r974906e  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // MakeLibCfa.cc -- 
     7// MakeLibCfa.cc --
    88//
    99// Author           : Richard C. Bilson
    1010// Created On       : Sat May 16 10:33:33 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Fri Jul 03 18:11:37 2015
    13 // Update Count     : 18
    14 // 
     12// Last Modified On : Thu Jan 07 13:34:39 2016
     13// Update Count     : 20
     14//
    1515
    1616#include "MakeLibCfa.h"
     
    2929                void visit( FunctionDecl* funcDecl );
    3030                void visit( ObjectDecl* objDecl );
    31  
     31
    3232                std::list< Declaration* > &get_newDecls() { return newDecls; }
    3333          private:
     
    4343        void MakeLibCfa::visit( FunctionDecl* origFuncDecl ) {
    4444                if ( origFuncDecl->get_linkage() != LinkageSpec::Intrinsic ) return;
    45  
     45
    4646                FunctionDecl *funcDecl = origFuncDecl->clone();
    4747                CodeGen::OperatorInfo opInfo;
     
    9999        void MakeLibCfa::visit( ObjectDecl* origObjDecl ) {
    100100                if ( origObjDecl->get_linkage() != LinkageSpec::Intrinsic ) return;
    101  
     101
    102102                ObjectDecl *objDecl = origObjDecl->clone();
    103103                assert( ! objDecl->get_init() );
    104104                std::list< Expression* > noDesignators;
    105                 objDecl->set_init( new SingleInit( new NameExpr( objDecl->get_name() ), noDesignators ) );
     105                objDecl->set_init( new SingleInit( new NameExpr( objDecl->get_name() ), noDesignators, false ) ); // cannot be constructed
    106106                newDecls.push_back( objDecl );
    107107        }
Note: See TracChangeset for help on using the changeset viewer.