Mercurial > projects > ldc
comparison gen/typinf.cpp @ 880:2dfd05525e2e
Fixed bad return types in typinf.cpp
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Fri, 09 Jan 2009 20:08:06 +0100 |
parents | 340acf1535d0 |
children | a4fcc13da3cd |
comparison
equal
deleted
inserted
replaced
879:c57e71c5586f | 880:2dfd05525e2e |
---|---|
520 assert(0); | 520 assert(0); |
521 } | 521 } |
522 | 522 |
523 /* ========================================================================= */ | 523 /* ========================================================================= */ |
524 | 524 |
525 static LLConstant* LLVM_D_Declare_TypeInfoBase(TypeInfoDeclaration* tid, ClassDeclaration* cd) | 525 static void LLVM_D_Declare_TypeInfoBase(TypeInfoDeclaration* tid, ClassDeclaration* cd) |
526 { | 526 { |
527 ClassDeclaration* base = cd; | 527 ClassDeclaration* base = cd; |
528 DtoResolveClass(base); | 528 DtoResolveClass(base); |
529 | 529 |
530 // create the symbol | 530 // create the symbol |
531 tid->ir.irGlobal->value = new llvm::GlobalVariable(tid->ir.irGlobal->type.get(), true,llvm::GlobalValue::WeakLinkage,NULL,tid->toChars(),gIR->module); | 531 tid->ir.irGlobal->value = new llvm::GlobalVariable(tid->ir.irGlobal->type.get(), true,llvm::GlobalValue::WeakLinkage,NULL,tid->toChars(),gIR->module); |
532 } | 532 } |
533 | 533 |
534 static LLConstant* LLVM_D_Define_TypeInfoBase(Type* basetype, TypeInfoDeclaration* tid, ClassDeclaration* cd) | 534 static void LLVM_D_Define_TypeInfoBase(Type* basetype, TypeInfoDeclaration* tid, ClassDeclaration* cd) |
535 { | 535 { |
536 ClassDeclaration* base = cd; | 536 ClassDeclaration* base = cd; |
537 DtoForceConstInitDsymbol(base); | 537 DtoForceConstInitDsymbol(base); |
538 | 538 |
539 // vtbl | 539 // vtbl |