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

Changeset 1523:833337c65fd3

Show
Ignore:
Timestamp:
07/06/09 18:54:02 (7 months ago)
Author:
Robert Clipsham <robert@octarineparrot.com>
branch:
default
Message:

Fixed some unmerged parts of the D2 frontend.
Removed the automatic linker flags for D2 (temp).
Renamed a runtime function for D2.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dmd2/expression.c

    r1465 r1523  
    87478747    e1->checkIntegral(); 
    87488748    e2 = e2->checkIntegral(); 
    8749     //e2 = e2->castTo(sc, Type::tshiftcnt); 
    8750     e2 = e2->castTo(sc, e1->type); // LDC 
     8749#if IN_DMD 
     8750    e2 = e2->castTo(sc, Type::tshiftcnt); 
     8751#elif IN_LLVM 
     8752    e2 = e2->castTo(sc, e1->type); 
     8753#endif 
    87518754    return this; 
    87528755} 
     
    87768779    e1->checkIntegral(); 
    87778780    e2 = e2->checkIntegral(); 
    8778     //e2 = e2->castTo(sc, Type::tshiftcnt); 
    8779     e2 = e2->castTo(sc, e1->type); // LDC 
     8781#if IN_DMD 
     8782    e2 = e2->castTo(sc, Type::tshiftcnt); 
     8783#elif IN_LLVM 
     8784    e2 = e2->castTo(sc, e1->type); 
     8785#endif 
    87808786    return this; 
    87818787} 
     
    93449350    e2 = e2->checkIntegral(); 
    93459351    e1 = e1->integralPromotions(sc); 
    9346     e2 = e2->castTo(sc, Type::tshiftcnt); 
     9352    //e2 = e2->castTo(sc, Type::tshiftcnt); 
     9353    e2 = e2->castTo(sc, e1->type); // LDC 
    93479354    type = e1->type; 
    93489355    } 
     
    93689375    e2 = e2->checkIntegral(); 
    93699376    e1 = e1->integralPromotions(sc); 
    9370     e2 = e2->castTo(sc, Type::tshiftcnt); 
     9377    //e2 = e2->castTo(sc, Type::tshiftcnt); 
     9378    e2 = e2->castTo(sc, e1->type); // LDC 
    93719379    type = e1->type; 
    93729380    } 
  • gen/main.cpp

    r1484 r1523  
    312312    else if (!noDefaultLib) 
    313313    { 
     314#if !DMDV2 
    314315        global.params.linkswitches->push(mem.strdup("-lldc-runtime")); 
    315316        global.params.linkswitches->push(mem.strdup("-ltango-cc-tango")); 
     
    318319        // with linking order 
    319320        global.params.linkswitches->push(mem.strdup("-lldc-runtime")); 
     321#endif 
    320322    } 
    321323 
  • gen/runtime.cpp

    r1512 r1523  
    329329    // Object _d_allocclass(ClassInfo ci) 
    330330    { 
     331#if DMDV2 
     332        std::string fname("_d_newclass"); 
     333#else 
    331334        std::string fname("_d_allocclass"); 
     335#endif 
    332336        std::vector<const LLType*> types; 
    333337        types.push_back(classInfoTy); 
Copyright © 2008, LDC Development Team.