From 7fd4fc81c32268cc85dc2a47dfa8f0ca78bb37b6 Mon Sep 17 00:00:00 2001 From: kai Date: Mon, 25 Feb 2013 21:18:10 +0100 Subject: [PATCH] Fix LLVM 3.3 compile errors. --- gen/todebug.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gen/todebug.cpp b/gen/todebug.cpp index e6605432..eb6791b0 100644 --- a/gen/todebug.cpp +++ b/gen/todebug.cpp @@ -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) );