Changes in src/CodeGen/Generate.h [5f08961d:c6b4432]
- File:
-
- 1 edited
-
src/CodeGen/Generate.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/Generate.h
r5f08961d rc6b4432 22 22 class Declaration; 23 23 24 namespace ast { 25 class TranslationUnit; 26 } 27 24 28 namespace CodeGen { 25 /// 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.)26 void generate( std::list< Declaration* > translationUnit, std::ostream &os, bool doIntrinsics, bool pretty, bool generateC = false , bool lineMarks = false, bool printTypeExpr = false );27 29 28 /// Generate code for a single node -- helpful for debugging in gdb 29 void generate( BaseSyntaxNode * node, std::ostream & os ); 30 /// Generates all code in transUnit and writing it to the os. 31 /// doIntrinsics: Should intrinsic functions be printed? 32 /// pretty: Format output nicely (e.g., uses unmangled names, etc.). 33 /// generateC: Make sure the output only consists of C code (allows some assertions, etc.) 34 /// lineMarks: Output line marks (processed line directives) in the output. 35 /// printExprTypes: Print the types of expressions in comments. 36 void generate( ast::TranslationUnit & transUnit, std::ostream &os, bool doIntrinsics, 37 bool pretty, bool generateC, bool lineMarks, bool printExprTypes ); 38 30 39 } // namespace CodeGen 31 40
Note:
See TracChangeset
for help on using the changeset viewer.