Changes in src/AST/Decl.cpp [8941b6b:61efa42]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Decl.cpp
r8941b6b r61efa42 20 20 #include <unordered_map> 21 21 22 #include "CodeGen/FixMain.h" // for FixMain23 22 #include "Common/Eval.h" // for eval 24 23 … … 76 75 } 77 76 this->type = ftype; 78 // Hack forcing the function "main" to have Cforall linkage to replace79 // main even if it is inside an extern "C", and also makes sure the80 // replacing function is always a C function.81 if ( name == "main" ) {82 this->linkage = CodeGen::FixMain::getMainLinkage();83 }84 77 } 85 78 … … 108 101 } 109 102 this->type = type; 110 // See note above about this hack.111 if ( name == "main" ) {112 this->linkage = CodeGen::FixMain::getMainLinkage();113 }114 103 } 115 104
Note: See TracChangeset
for help on using the changeset viewer.