mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 08:30:47 +03:00
Build fix for the latest LLVMContext changes (LLVM r75445)
This shouldn't break the build with older LLVM revs. We include LLVMContext.h in gen/llvm.h now to make the transition a little bit easier.
This commit is contained in:
parent
8576788245
commit
331319dab1
16 changed files with 36 additions and 38 deletions
|
@ -19,7 +19,7 @@
|
|||
|
||||
using namespace llvm::dwarf;
|
||||
|
||||
#define DBG_NULL ( LLConstant::getNullValue(DBG_TYPE) )
|
||||
#define DBG_NULL ( llvm::getGlobalContext().getNullValue(DBG_TYPE) )
|
||||
#define DBG_TYPE ( getPtrToType(llvm::StructType::get(NULL,NULL)) )
|
||||
#define DBG_CAST(X) ( llvm::ConstantExpr::getBitCast(X, DBG_TYPE) )
|
||||
|
||||
|
@ -297,7 +297,7 @@ static llvm::DICompositeType dwarfCompositeType(Type* type, llvm::DICompileUnit
|
|||
std::vector<LLConstant*> initvals(11);
|
||||
initvals[0] = DBG_TAG(DW_TAG_structure_type);
|
||||
for (int i = 1; i < initvals.size(); ++i)
|
||||
initvals[i] = LLConstant::getNullValue(getDwarfCompositeTypeType()->getContainedType(i));
|
||||
initvals[i] = llvm::getGlobalContext().getNullValue(getDwarfCompositeTypeType()->getContainedType(i));
|
||||
gv->setInitializer(LLConstantStruct::get(getDwarfCompositeTypeType(), initvals));
|
||||
ir->diCompositeType = llvm::DICompositeType(gv);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue