Changeset c6b4432 for src/CodeGen/FixMain.h
- Timestamp:
- Nov 8, 2023, 2:01:11 PM (8 months ago)
- Branches:
- master
- Children:
- 3e4bf0d, f5ec35a
- Parents:
- 790d835
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/FixMain.h
r790d835 rc6b4432 21 21 22 22 #include "AST/LinkageSpec.hpp" 23 #include "SynTree/LinkageSpec.h"24 23 25 class Declaration;26 class FunctionDecl;27 24 namespace ast { 28 25 class FunctionDecl; … … 34 31 class FixMain { 35 32 public : 36 static inline LinkageSpec::Spec mainLinkage() {37 return replace_main ? LinkageSpec::Cforall : LinkageSpec::C;38 }39 33 static inline ast::Linkage::Spec getMainLinkage() { 40 34 return replace_main ? ast::Linkage::Cforall : ast::Linkage::C; … … 45 39 } 46 40 47 static bool isMain(FunctionDecl* decl);48 41 static bool isMain(const ast::FunctionDecl * decl); 49 42 50 static void fix( std::list< Declaration * > & decls,51 std::ostream &os, const char* bootloader_filename );52 43 static void fix( ast::TranslationUnit & translationUnit, 53 44 std::ostream &os, const char * bootloader_filename );
Note: See TracChangeset
for help on using the changeset viewer.