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

Changeset 643:2a0bcf7f7b3d

Show
Ignore:
Timestamp:
10/03/08 13:24:46 (2 months ago)
Author:
Christian Kamm <kamm incasoftware de>
branch:
default
Message:

Fix -oq, closes #96
Add value debug output to RealExp::toConstElem.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dmd/module.c

    r614 r643  
    142142 
    143143    if (global.params.fqnNames) 
     144    { 
    144145        if(md) 
    145146        argobj = FileName::replaceName(argobj, md->toChars()); 
     
    147148        argobj = FileName::replaceName(argobj, toChars()); 
    148149 
    149     int clen = strlen(argobj); 
    150     char* tmp = (char *)alloca(clen + 1); 
    151     memcpy(tmp, argobj, clen); 
    152     tmp[clen] = 0; 
    153     argobj = tmp; 
     150        // add ext, otherwise forceExt will make nested.module into nested.bc 
     151        size_t len = strlen(argobj); 
     152        size_t extlen = strlen(ext); 
     153        char* s = (char *)alloca(len + 1 + extlen + 1); 
     154        memcpy(s, argobj, len); 
     155        s[len] = '.'; 
     156        memcpy(s + len + 1, ext, extlen + 1); 
     157        s[len+1+extlen] = 0; 
     158        argobj = s; 
     159    } 
    154160    } 
    155161 
  • gen/toir.cpp

    r634 r643  
    245245LLConstant* RealExp::toConstElem(IRState* p) 
    246246{ 
    247     Logger::print("RealExp::toConstElem: %s | %s\n", toChars(), type->toChars()); 
     247    Logger::print("RealExp::toConstElem: %s | %s | %LX\n", toChars(), type->toChars(), value); 
    248248    LOG_SCOPE; 
    249249    Type* t = type->toBasetype(); 
Copyright © 2008, LDC Development Team.