Changeset 4acc87f for src/driver
- Timestamp:
- May 5, 2016, 6:42:32 PM (9 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/driver/cc1.cc
r7b937575 r4acc87f 10 10 // Created On : Fri Aug 26 14:23:51 2005 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed May 4 23:29:19201613 // Update Count : 7 412 // Last Modified On : Thu May 5 16:04:30 2016 13 // Update Count : 77 14 14 // 15 15 … … 323 323 cargs[0] = ( *new string( bprefix + "/cfa-cpp" ) ).c_str(); 324 324 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. 335 326 cargs[ncargs] = ( *new string( "-F" ) ).c_str(); 336 327 ncargs += 1; 337 cargs[ncargs] = ( *new string( filename) ).c_str();328 cargs[ncargs] = ( *new string( string( cpp_in ) ) ).c_str(); 338 329 ncargs += 1; 339 330
Note: See TracChangeset
for help on using the changeset viewer.