comparison gen/structs.cpp @ 955:8a70b4381369

Make sure debug info uses the right compilation units - in particular the current cu if a symbol is a template instance. Fixes #211.
author Christian Kamm <kamm incasoftware de>
date Sat, 14 Feb 2009 21:18:47 +0100
parents 9a10fa839dc5
children 3ead5c40b7d6
comparison
equal deleted inserted replaced
954:e048e36bc155 955:8a70b4381369
640 llvm::cast<llvm::OpaqueType>(irstruct->initOpaque.get())->refineAbstractTypeTo(irstruct->constInit->getType()); 640 llvm::cast<llvm::OpaqueType>(irstruct->initOpaque.get())->refineAbstractTypeTo(irstruct->constInit->getType());
641 641
642 gIR->structs.pop_back(); 642 gIR->structs.pop_back();
643 643
644 // emit typeinfo 644 // emit typeinfo
645 if (sd->getCompilationModule() == gIR->dmodule && sd->llvmInternal != LLVMno_typeinfo) 645 if (sd->getModule() == gIR->dmodule && sd->llvmInternal != LLVMno_typeinfo)
646 DtoTypeInfoOf(sd->type, false); 646 DtoTypeInfoOf(sd->type, false);
647 } 647 }
648 648
649 ////////////////////////////////////////////////////////////////////////////////////////// 649 //////////////////////////////////////////////////////////////////////////////////////////
650 650