Changeset 4acc87f for src/driver


Ignore:
Timestamp:
May 5, 2016, 6:42:32 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, with_gc
Children:
d029162e
Parents:
7b937575
Message:

leave file as-is when passed to cfa-cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/driver/cc1.cc

    r7b937575 r4acc87f  
    1010// Created On       : Fri Aug 26 14:23:51 2005
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed May  4 23:29:19 2016
    13 // Update Count     : 74
     12// Last Modified On : Thu May  5 16:04:30 2016
     13// Update Count     : 77
    1414//
    1515
     
    323323                cargs[0] = ( *new string( bprefix + "/cfa-cpp" ) ).c_str();
    324324
    325                 // Source file-name without suffix used to generate routine names containing external initializations for TU.
    326                 string filename( cpp_in );
    327                 string::size_type posn = filename.find_last_of( "/" );
    328                 if ( posn != string::npos ) {
    329                         filename = filename.substr( posn + 1 );
    330                 } // if
    331                 posn = filename.find_last_of( "." );
    332                 if ( posn != string::npos ) {
    333                         filename = filename.substr( 0, posn );
    334                 } // if
     325                // Source file-name used to generate routine names containing global initializations for TU.
    335326                cargs[ncargs] = ( *new string( "-F" ) ).c_str();
    336327                ncargs += 1;
    337                 cargs[ncargs] = ( *new string( filename ) ).c_str();
     328                cargs[ncargs] = ( *new string( string( cpp_in ) ) ).c_str();
    338329                ncargs += 1;
    339330
Note: See TracChangeset for help on using the changeset viewer.