clover: Fix build against LLVM 3.8 SVN >= r255078
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:

committed by
Michel Dänzer

parent
e1815bcc47
commit
b4a03e7f8f
@@ -661,7 +661,11 @@ namespace {
|
|||||||
|
|
||||||
if (dump_asm) {
|
if (dump_asm) {
|
||||||
LLVMSetTargetMachineAsmVerbosity(tm, true);
|
LLVMSetTargetMachineAsmVerbosity(tm, true);
|
||||||
|
#if HAVE_LLVM >= 0x0308
|
||||||
|
LLVMModuleRef debug_mod = wrap(llvm::CloneModule(mod).release());
|
||||||
|
#else
|
||||||
LLVMModuleRef debug_mod = wrap(llvm::CloneModule(mod));
|
LLVMModuleRef debug_mod = wrap(llvm::CloneModule(mod));
|
||||||
|
#endif
|
||||||
emit_code(tm, debug_mod, LLVMAssemblyFile, &out_buffer, r_log);
|
emit_code(tm, debug_mod, LLVMAssemblyFile, &out_buffer, r_log);
|
||||||
buffer_size = LLVMGetBufferSize(out_buffer);
|
buffer_size = LLVMGetBufferSize(out_buffer);
|
||||||
buffer_data = LLVMGetBufferStart(out_buffer);
|
buffer_data = LLVMGetBufferStart(out_buffer);
|
||||||
|
Reference in New Issue
Block a user