Changeset c7ebbec for src/CodeGen


Ignore:
Timestamp:
Dec 21, 2023, 10:21:28 AM (12 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
116d7e2
Parents:
523e300
Message:

Reorganization of Linkage::Spec. is_mangled represented two properties with is_gcc_builtin separating them in one case. The second property is_overloadable which replaces is_gcc_builtin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cpp

    r523e300 rc7ebbec  
    102102
    103103std::string CodeGenerator::mangleName( ast::DeclWithType const * decl ) {
    104         // GCC builtins should always be printed unmangled.
    105         if ( options.pretty || decl->linkage.is_gcc_builtin ) {
    106                 return decl->name;
    107         } else if ( decl->linkage.is_mangled && decl->mangleName != "" ) {
     104        if ( !options.pretty && decl->linkage.is_mangled && decl->mangleName != "" ) {
    108105                return decl->scopedMangleName();
    109106        } else {
Note: See TracChangeset for help on using the changeset viewer.