aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-01-05 22:27:40 +0000
committerDavid Robillard <d@drobilla.net>2015-01-05 22:27:40 +0000
commit65f1c1e1980794b015752ee821abbb6f7fba7c1b (patch)
treedb3006b858ef5b786717220be36e60dd5caa0852 /src
parent3eca931da4d323d4cb2d15ff2af4b0388ea510eb (diff)
downloadresp-65f1c1e1980794b015752ee821abbb6f7fba7c1b.tar.gz
resp-65f1c1e1980794b015752ee821abbb6f7fba7c1b.tar.bz2
resp-65f1c1e1980794b015752ee821abbb6f7fba7c1b.zip
Update to LLVM 3.5.
git-svn-id: http://svn.drobilla.net/resp/trunk@456 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src')
-rw-r--r--src/llvm.cpp7
1 files changed, 4 insertions, 3 deletions
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 <boost/format.hpp>
-#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<Function*>(f), llvm::PrintMessageAction)) {
+ llvm::raw_os_ostream os(std::cerr);
+ if (verifyFunction(*static_cast<Function*>(f), &os)) {
module->dump();
throw Error(Cursor(), "Broken module");
}