Changeset 937e51d for src/CodeGen/GenType.cc
- Timestamp:
- Jun 26, 2015, 4:00:26 PM (10 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 0df292b, e0ff3e6
- Parents:
- eb50842 (diff), 1869adf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/CodeGen/GenType.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/GenType.cc
reb50842 r937e51d 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 18 23:38:22 201513 // Update Count : 214 // 15 16 #include <s trstream>12 // Last Modified On : Mon Jun 8 14:36:02 2015 13 // Update Count : 9 14 // 15 16 #include <sstream> 17 17 #include <cassert> 18 18 19 19 #include "GenType.h" 20 #include "CodeGenerator 2.h"20 #include "CodeGenerator.h" 21 21 #include "SynTree/Visitor.h" 22 22 #include "SynTree/Type.h" … … 68 68 69 69 void GenType::genArray( const Type::Qualifiers &qualifiers, Type *base, Expression *dimension, bool isVarLen, bool isStatic ) { 70 std::ostr stream os;70 std::ostringstream os; 71 71 if ( typeString != "" ) { 72 72 if ( typeString[ 0 ] == '*' ) { … … 97 97 } // if 98 98 if ( dimension != 0 ) { 99 CodeGenerator 2cg( os );99 CodeGenerator cg( os ); 100 100 dimension->accept( cg ); 101 101 } // if 102 102 os << "]"; 103 103 104 typeString = std::string( os.str(), os.pcount());104 typeString = os.str(); 105 105 106 106 base->accept( *this ); … … 127 127 128 128 void GenType::visit( FunctionType *funcType ) { 129 std::ostr stream os;129 std::ostringstream os; 130 130 131 131 if ( typeString != "" ) { … … 148 148 } // if 149 149 } else { 150 CodeGenerator 2cg( os );150 CodeGenerator cg( os ); 151 151 os << "(" ; 152 152 … … 159 159 } // if 160 160 161 typeString = std::string( os.str(), os.pcount());161 typeString = os.str(); 162 162 163 163 if ( funcType->get_returnVals().size() == 0 ) {
Note:
See TracChangeset
for help on using the changeset viewer.