Fix LLVM 3.3 compile errors.

This commit is contained in:
kai 2013-02-25 21:18:10 +01:00
parent 4ec9fbc011
commit 7fd4fc81c3

View file

@ -281,6 +281,9 @@ static llvm::DIType dwarfCompositeType(Type* type)
getTypeBitSize(T), // size in bits
getABITypeAlign(T)*8, // alignment in bits
llvm::DIType::FlagFwdDecl, // flags
#if LDC_LLVM_VER >= 303
derivedFrom, // DerivedFrom
#endif
elemsArray
);
}
@ -342,6 +345,9 @@ static llvm::DIType dwarfArrayType(Type* type) {
getTypeBitSize(T), // size in bits
getABITypeAlign(T)*8, // alignment in bits
0, // What here?
#if LDC_LLVM_VER >= 303
llvm::DIType(), // DerivedFrom
#endif
gIR->dibuilder.getOrCreateArray(elems)
);