From b4b71e6c79891c96091390f37fed5dcb1ebadac8 Mon Sep 17 00:00:00 2001 From: Kai Nacke Date: Sun, 12 Jan 2014 11:37:52 +0100 Subject: [PATCH] Fix include for LLVM 3.5 --- gen/functions.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gen/functions.cpp b/gen/functions.cpp index bc536812..7f3e12bb 100644 --- a/gen/functions.cpp +++ b/gen/functions.cpp @@ -300,7 +300,11 @@ llvm::FunctionType* DtoFunctionType(Type* type, IrFuncTy &irFty, Type* thistype, #include "llvm/Support/raw_ostream.h" #include "llvm/Support/SourceMgr.h" +#if LDC_LLVM_VER >= 305 +#include "llvm/AsmParser/Parser.h" +#else #include "llvm/Assembly/Parser.h" +#endif LLFunction* DtoInlineIRFunction(FuncDeclaration* fdecl) {