Changeset 8941b6b for src/CodeGen/Generate.h
- Timestamp:
- Oct 25, 2023, 6:33:25 PM (10 months ago)
- Branches:
- master
- Children:
- bef4f1a
- Parents:
- d22bf87
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/Generate.h
rd22bf87 r8941b6b 22 22 class Declaration; 23 23 24 namespace ast { 25 class TranslationUnit; 26 } 27 24 28 namespace CodeGen { 25 29 /// Generates code. doIntrinsics determines if intrinsic functions are printed, pretty formats output nicely (e.g., uses unmangled names, etc.), generateC is true when the output must consist only of C code (allows some assertions, etc.) … … 28 32 /// Generate code for a single node -- helpful for debugging in gdb 29 33 void generate( BaseSyntaxNode * node, std::ostream & os ); 34 35 /// Generates all code in transUnit and writing it to the os. 36 /// doIntrinsics: Should intrinsic functions be printed? 37 /// pretty: Format output nicely (e.g., uses unmangled names, etc.). 38 /// generateC: Make sure the output only consists of C code (allows some assertions, etc.) 39 /// lineMarks: Output line marks (processed line directives) in the output. 40 /// printExprTypes: Print the types of expressions in comments. 41 void generate( ast::TranslationUnit & transUnit, std::ostream &os, bool doIntrinsics, 42 bool pretty, bool generateC, bool lineMarks, bool printExprTypes ); 43 30 44 } // namespace CodeGen 31 45
Note: See TracChangeset
for help on using the changeset viewer.