Show
Ignore:
Timestamp:
02/11/10 11:18:34 (7 months ago)
Author:
corni
Message:

Replace the friend-relationship between stmt and CheckMemoryManagement?.
Auto-add CheckMemoryManagement? in debug builds after each pass.
Add a pass for return; => return NULL; transformations
Add a cli argument to rphp-analyzer (--lower) which runs all existing passes in a well-defined order.
pPassManager shouldn't have a copy constructor (per comment) so remove the existing empty.
Document which phc pass has been implemented in which corresponding rphp pass.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rphp/compiler/analysis/passes/CheckMemoryManagement.cpp

    r1030 r1034  
    3030 
    3131void CheckMemoryManagement::visit_pre_stmt(stmt* s) { 
    32     if(s && s->refCount_ != 1) { 
    33         std::cerr << "The following AST Node has a refCount of " << s->refCount_ << std::endl;  
     32    if(s && s->getRefCount() != 1) { 
     33        std::cerr << "The following AST Node has a refCount of " << s->getRefCount() << std::endl;  
    3434        DumpAST dump(module_); 
    3535        dump.pre_run();