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

Changeset 802:28ce72c60a21

Show
Ignore:
Timestamp:
11/29/08 14:57:52 (1 month ago)
Author:
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
branch:
default
Message:

Fixed some problems with the addZeros forward declarations having type mismatches.

Files:

Legend:

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

    r801 r802  
    421421        DtoTypeInfoOf(cd->type, false); 
    422422} 
    423  
    424 ////////////////////////////////////////////////////////////////////////////////////////// 
    425  
    426 void addZeros(std::vector<llvm::Constant*>& inits, size_t pos, size_t offset); // irstruct.cpp 
    427423 
    428424////////////////////////////////////////////////////////////////////////////// 
     
    548544        assert(fd); 
    549545 
     546        // if function is abstract, 
     547        // or class is abstract, and func has no body, 
     548        // emit a null vtbl entry 
    550549        if (fd->isAbstract() || (cd->isAbstract() && !fd->fbody)) 
    551550        { 
  • gen/structs.cpp

    r800 r802  
    1919 
    2020////////////////////////////////////////////////////////////////////////////////////////// 
    21 void addZeros(std::vector<llvm::Constant*>& inits, unsigned pos, unsigned offset); // defined in irstruct.cpp 
    2221 
    2322// pair of var and its init 
  • gen/toir.cpp

    r797 r802  
    22782278////////////////////////////////////////////////////////////////////////////////////////// 
    22792279 
    2280 void addZeros(std::vector<llvm::Value*>& inits, unsigned pos, unsigned offset); 
    2281  
    22822280DValue* StructLiteralExp::toElem(IRState* p) 
    22832281{ 
     
    23622360 
    23632361////////////////////////////////////////////////////////////////////////////////////////// 
    2364  
    2365 void addZeros(std::vector<llvm::Constant*>& inits, unsigned pos, unsigned offset); 
    23662362 
    23672363LLConstant* StructLiteralExp::toConstElem(IRState* p) 
  • ir/irstruct.cpp

    r800 r802  
    120120 
    121121////////////////////////////////////////// 
    122  
    123 void addZeros(std::vector<const llvm::Type*>& inits, size_t pos, size_t offset); 
    124122 
    125123void IrStruct::addVar(VarDeclaration * var) 
  • ir/irstruct.h

    r797 r802  
    88 
    99struct IrInterface; 
     10 
     11void addZeros(std::vector<const llvm::Type*>& inits, size_t pos, size_t offset); 
     12void addZeros(std::vector<llvm::Constant*>& inits, size_t pos, size_t offset); 
     13void addZeros(std::vector<llvm::Value*>& inits, size_t pos, size_t offset); 
    1014 
    1115////////////////////////////////////////////////////////////////////////////// 
Copyright © 2008, LDC Development Team.