Changeset e8616b6 for src/AST


Ignore:
Timestamp:
Jul 26, 2022, 11:35:02 AM (2 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.

Location:
src/AST
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Decl.hpp

    r5cf1228 re8616b6  
    108108        ObjectDecl( const CodeLocation & loc, const std::string & name, const Type * type,
    109109                const Init * init = nullptr, Storage::Classes storage = {},
    110                 Linkage::Spec linkage = Linkage::C, const Expr * bitWd = nullptr,
     110                Linkage::Spec linkage = Linkage::Cforall, const Expr * bitWd = nullptr,
    111111                std::vector< ptr<Attribute> > && attrs = {}, Function::Specs fs = {} )
    112112        : DeclWithType( loc, name, storage, linkage, std::move(attrs), fs ), type( type ),
  • src/AST/Pass.impl.hpp

    r5cf1228 re8616b6  
    597597                        guard_symtab guard { *this };
    598598                        // implicit add __func__ identifier as specified in the C manual 6.4.2.2
     599                        // This is a C name and so has C linkage.
    599600                        static ast::ptr< ast::ObjectDecl > func{ new ast::ObjectDecl{
    600601                                CodeLocation{}, "__func__",
     
    602603                                        new ast::BasicType{ ast::BasicType::Char, ast::CV::Const },
    603604                                        nullptr, VariableLen, DynamicDim
    604                                 }
     605                                },
     606                                nullptr,
     607                                ast::Storage::Classes(),
     608                                ast::Linkage::C,
    605609                        } };
    606610                        __pass::symtab::addId( core, 0, func );
Note: See TracChangeset for help on using the changeset viewer.