Changeset 13de47bc for src/SynTree
- Timestamp:
- Jan 12, 2017, 3:28:29 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- aaa1a99a
- Parents:
- 7cc2c8d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/FunctionDecl.cc
r7cc2c8d r13de47bc 22 22 #include "Common/utility.h" 23 23 #include "InitTweak/InitTweak.h" 24 #include "CodeGen/FixMain.h" 24 25 25 26 extern bool translation_unit_nomain; … … 32 33 // because we want to replace the main even if it is inside an extern 33 34 if ( name == "main" ) { 34 set_linkage( translation_unit_nomain ? LinkageSpec::C : LinkageSpec::Cforall);35 set_linkage( CodeGen::FixMain::mainLinkage() ); 35 36 } // if 36 37 }
Note: See TracChangeset
for help on using the changeset viewer.