Changeset e6cee92 for src/CodeGen


Ignore:
Timestamp:
Jul 17, 2017, 3:25:58 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
795d450
Parents:
7ebaa56
Message:

Fix TupleAssignment? code for references

Location:
src/CodeGen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    r7ebaa56 re6cee92  
    182182                        genCommaList( aggDecl->get_parameters().begin(), aggDecl->get_parameters().end() );
    183183                        output << ")" << endl;
     184                        output << indent;
    184185                }
    185186
     
    321322        void CodeGenerator::visit( __attribute__((unused)) ConstructorInit * init ){
    322323                assertf( ! genC, "ConstructorInit nodes should not reach code generation." );
    323                 // xxx - generate something reasonable for constructor/destructor pairs
    324                 output << "<ctorinit>";
     324                // pseudo-output for constructor/destructor pairs
     325                output << "<ctorinit>{" << std::endl << ++indent << "ctor: ";
     326                maybeAccept( init->get_ctor(), *this );
     327                output << ", " << std::endl << indent << "dtor: ";
     328                maybeAccept( init->get_dtor(), *this );
     329                output << std::endl << --indent << "}";
    325330        }
    326331
  • src/CodeGen/CodeGenerator.h

    r7ebaa56 re6cee92  
    2020#include <ostream>                // for ostream, operator<<
    2121#include <string>                 // for string
     22
     23#include "Common/Indenter.h"      // for Indenter
    2224
    2325#include "SynTree/Declaration.h"  // for DeclarationWithType (ptr only), Fun...
Note: See TracChangeset for help on using the changeset viewer.