Changeset 1f6e009


Ignore:
Timestamp:
Apr 1, 2016, 11:47:05 AM (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:
1048b31
Parents:
3cfe27f
Message:

set main to Cforall linkage so that it will be mangled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/FunctionDecl.cc

    r3cfe27f r1f6e009  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // FunctionDecl.cc -- 
     7// FunctionDecl.cc --
    88//
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jul 13 18:11:44 2015
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Fri Apr 01 11:40:07 2016
    1313// Update Count     : 19
    1414//
     
    2525        set_isInline( isInline );
    2626        set_isNoreturn( isNoreturn );
    27         // this is a brazen hack to force the function "main" to have C linkage
    28         if ( name == "main" ) {
    29                 set_linkage( LinkageSpec::C );
    30         } // if
    3127}
    3228
     
    5248        using std::endl;
    5349        using std::string;
    54        
     50
    5551        if ( get_name() != "" ) {
    5652                os << get_name() << ": ";
     
    9490        using std::endl;
    9591        using std::string;
    96        
     92
    9793        if ( get_name() != "" ) {
    9894                os << get_name() << ": ";
Note: See TracChangeset for help on using the changeset viewer.