Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Mangler.cc

    r5f2f2d7 r843054c2  
    1010// Created On       : Sun May 17 21:40:29 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jun  8 15:12:12 2015
    13 // Update Count     : 8
     12// Last Modified On : Tue May 19 16:50:47 2015
     13// Update Count     : 3
    1414//
    1515
     
    160160                } else {
    161161                        printQualifiers( typeInst );
    162                         std::ostringstream numStream;
     162                        std::ostrstream numStream;
    163163                        numStream << varNum->second.first;
     164                        mangleName << (numStream.pcount() + 1);
    164165                        switch ( (TypeDecl::Kind )varNum->second.second ) {
    165166                          case TypeDecl::Any:
     
    173174                                break;
    174175                        } // switch
    175                         mangleName << numStream.str();
     176                        mangleName << std::string( numStream.str(), numStream.pcount() );
    176177                } // if
    177178        }
     
    219220                                        sub_mangler.varNums = varNums;
    220221                                        (*assert)->accept( sub_mangler );
    221                                         assertionNames.push_back( sub_mangler.mangleName.str() );
     222                                        assertionNames.push_back( std::string( sub_mangler.mangleName.str(), sub_mangler.mangleName.pcount() ) );
    222223                                } // for
    223224                        } // for
Note: See TracChangeset for help on using the changeset viewer.