Ignore:
Timestamp:
May 9, 2017, 2:17:55 PM (5 years ago)
Author:
ajbeach <ajbeach@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
6e300d9, bc934cdf
Parents:
f408e1a
Message:

Added basic line directives to code generation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/LineStream.cc

    rf408e1a r4810867  
    1010// Created On       : Thr May 4 13:15:00 2017
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Fri May 5 14:29:00 2017
     12// Last Modified On : Mon May 8 12:08:00 2017
    1313// Update Count     : 0
    1414//
     
    1717
    1818namespace CodeGen {
    19 
    20         LineStream::LineStream(std::ostream & baseStream, bool insertLines) :
    21                 baseStream(baseStream), insertLines(insertLines)
    22         {}
    2319
    2420        void LineStream::printLineDirective(CodeLocation const & location) {
     
    4440                actualLocation.unset();
    4541
    46                 if (addNewLine) {
     42                if (addNewline) {
    4743                        expectedLocation.linenumber += 1;
    4844                        buffer.put('\n');
     
    7975
    8076        LineStream & LineStream::operator<<(StreamFlag flag) {
    81                 static StringFlag const endlCopy = std::endl;
     77                static StreamFlag const endlCopy = std::endl;
    8278                if (!insertLines) {
    8379                        baseStream << flag;
Note: See TracChangeset for help on using the changeset viewer.