Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/Generate.h

    rc6b4432 r5f08961d  
    2222class Declaration;
    2323
    24 namespace ast {
    25         class TranslationUnit;
    26 }
     24namespace 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 );
    2727
    28 namespace CodeGen {
    29 
    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 
     28        /// Generate code for a single node -- helpful for debugging in gdb
     29        void generate( BaseSyntaxNode * node, std::ostream & os );
    3930} // namespace CodeGen
    4031
Note: See TracChangeset for help on using the changeset viewer.