Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Changeset 1322:b8c2f3e05b52

Show
Ignore:
Timestamp:
05/09/09 09:27:27 (3 years ago)
Author:
Tomas Lindquist Olsen <tomas.l.olsen gmail com>
branch:
default
Message:

Fixed compile unit for debug info for array operations, fixed ticket #280 .

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gen/todebug.cpp

    r1271 r1322  
    9696static Module* getDefinedModule(Dsymbol* s) 
    9797{ 
    98     if (!DtoIsTemplateInstance(s)) 
    99         return s->getModule(); 
    100     else 
    101     return gIR->dmodule; 
     98    // templates are defined in current module 
     99    if (DtoIsTemplateInstance(s)) 
     100    { 
     101        return gIR->dmodule; 
     102    } 
     103    // array operations as well 
     104    else if (FuncDeclaration* fd = s->isFuncDeclaration()) 
     105    { 
     106        if (fd->isArrayOp) 
     107            return gIR->dmodule; 
     108    } 
     109    // otherwise use the symbol's module 
     110    return s->getModule(); 
    102111} 
    103112 
Copyright © 2008, LDC Development Team.