From 65f1c1e1980794b015752ee821abbb6f7fba7c1b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 5 Jan 2015 22:27:40 +0000 Subject: Update to LLVM 3.5. git-svn-id: http://svn.drobilla.net/resp/trunk@456 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/llvm.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/llvm.cpp b/src/llvm.cpp index 229f88e..678e2e4 100644 --- a/src/llvm.cpp +++ b/src/llvm.cpp @@ -30,11 +30,10 @@ #include -#include "llvm/Analysis/Verifier.h" -#include "llvm/Assembly/AssemblyAnnotationWriter.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/ExecutionEngine/JIT.h" #include "llvm/ExecutionEngine/JITMemoryManager.h" +#include "llvm/IR/AssemblyAnnotationWriter.h" #include "llvm/IR/DataLayout.h" #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/IRBuilder.h" @@ -42,6 +41,7 @@ #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" #include "llvm/IR/Value.h" +#include "llvm/IR/Verifier.h" #include "llvm/PassManager.h" #include "llvm/Support/TargetSelect.h" #include "llvm/Support/raw_os_ostream.h" @@ -502,7 +502,8 @@ LLVMEngine::finishFn(CEnv& cenv, CVal ret, const AST* retT) else builder.CreateRet(builder.CreateBitCast(llVal(ret), llType(retT), "ret")); - if (verifyFunction(*static_cast(f), llvm::PrintMessageAction)) { + llvm::raw_os_ostream os(std::cerr); + if (verifyFunction(*static_cast(f), &os)) { module->dump(); throw Error(Cursor(), "Broken module"); } -- cgit v1.2.1