Changeset e8616b6 for src/Validate


Ignore:
Timestamp:
Jul 26, 2022, 11:35:02 AM (3 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master, pthread-emulation
Children:
3992098, 7ce8873
Parents:
5cf1228
Message:

Changed the default Linkage on ast::ObjectDecl from C to Cforall. There appears to be only one internal name that actually needed to be C.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/Autogen.cpp

    r5cf1228 re8616b6  
    370370ast::ObjectDecl * FuncGenerator::dstParam() const {
    371371        return new ast::ObjectDecl( getLocation(), "_dst",
    372                 new ast::ReferenceType( ast::deepCopy( type ) ),
    373                 nullptr, {}, ast::Linkage::Cforall );
     372                new ast::ReferenceType( ast::deepCopy( type ) ) );
    374373}
    375374
    376375ast::ObjectDecl * FuncGenerator::srcParam() const {
    377376        return new ast::ObjectDecl( getLocation(), "_src",
    378                 ast::deepCopy( type ),
    379                 nullptr, {}, ast::Linkage::Cforall );
     377                ast::deepCopy( type ) );
    380378}
    381379
     
    429427                ast::ObjectDecl * param = new ast::ObjectDecl(
    430428                        getLocation(), member->name, paramType );
    431                 param->linkage = ast::Linkage::Cforall;
    432429                for ( auto & attr : member->attributes ) {
    433430                        if ( attr->isValidOnFuncParam() ) {
Note: See TracChangeset for help on using the changeset viewer.