Changeset a32b204 for translator/CodeGen


Ignore:
Timestamp:
May 17, 2015, 1:19:35 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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:
0dd3a2f
Parents:
b87a5ed
Message:

licencing: second groups of files

Location:
translator/CodeGen
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • translator/CodeGen/CodeGenerator2.cc

    rb87a5ed ra32b204  
    553553            before << "do" ;
    554554        else {
    555             before << "while(" ;
     555            before << "while (" ;
    556556            whileStmt->get_condition()->accept(*this );
    557557            after += ")";
     
    565565
    566566        if ( whileStmt->get_isDoWhile() ) {
    567             before << " while(" ;
     567            before << " while (" ;
    568568            whileStmt->get_condition()->accept(*this );
    569569            after += ");";
  • translator/CodeGen/CodeGenerator2.h

    rb87a5ed ra32b204  
    9797    inline bool doSemicolon( Declaration* decl ) {
    9898        if ( FunctionDecl* func = dynamic_cast< FunctionDecl* >( decl ) ) {
    99             return !func->get_statements();
     99            return ! func->get_statements();
    100100        }
    101101        return true;
  • translator/CodeGen/FixNames.cc

    rb87a5ed ra32b204  
    3232fixDWT( DeclarationWithType *dwt )
    3333{
    34   if( dwt->get_name() != "" ) {
    35     if( LinkageSpec::isDecoratable( dwt->get_linkage() ) ) {
     34  if ( dwt->get_name() != "" ) {
     35    if ( LinkageSpec::isDecoratable( dwt->get_linkage() ) ) {
    3636      dwt->set_mangleName( SymTab::Mangler::mangle( dwt ) );
    3737    }
  • translator/CodeGen/OperatorTable.cc

    rb87a5ed ra32b204  
    6464initialize()
    6565{
    66   for( int i = 0; i < numOps; ++i ) {
     66  for ( int i = 0; i < numOps; ++i ) {
    6767    table[ tableValues[i].inputName ] = tableValues[i];
    6868  }
     
    7575{
    7676  static bool init = false;
    77   if( !init ) {
     77  if ( ! init ) {
    7878    initialize();
    7979  }
    8080  std::map< std::string, OperatorInfo >::const_iterator i = table.find( funcName );
    81   if( i == table.end() ) {
     81  if ( i == table.end() ) {
    8282    return false;
    8383  } else {
Note: See TracChangeset for help on using the changeset viewer.