Changes in src/CodeGen/CodeGenerator.h [bf2438c:f7cb0bc]
- File:
-
- 1 edited
-
src/CodeGen/CodeGenerator.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.h
rbf2438c rf7cb0bc 17 17 #define CODEGENV_H 18 18 19 #include <list> // for list 20 #include <ostream> // for ostream, operator<< 21 #include <string> // for string 19 #include <list> 22 20 23 #include "SynTree/Declaration.h" // for DeclarationWithType (ptr only), Fun... 24 #include "SynTree/Visitor.h" // for Visitor 25 #include "SynTree/SynTree.h" // for Visitor Nodes 21 #include "SynTree/Declaration.h" 22 #include "SynTree/SynTree.h" 23 #include "SynTree/Visitor.h" 24 25 #include "SymTab/Indexer.h" 26 27 #include "Common/Indenter.h" 28 #include "Common/utility.h" 26 29 27 30 namespace CodeGen { … … 100 103 template< class Iterator > void genCommaList( Iterator begin, Iterator end ); 101 104 102 struct Indenter {103 Indenter(CodeGenerator &cg) : cg(cg) {}104 CodeGenerator & cg;105 std::ostream& operator()(std::ostream & os) const;106 };107 108 105 struct LabelPrinter { 109 106 LabelPrinter(CodeGenerator &cg) : cg(cg), labels( 0 ) {} … … 128 125 private: 129 126 Indenter indent; 130 int cur_indent;131 127 bool insideFunction; 132 128 std::ostream &output;
Note:
See TracChangeset
for help on using the changeset viewer.