From bbec080bb91fdf49cb1641a6389c0fad473d5ac6 Mon Sep 17 00:00:00 2001 From: Anton Mitrokhin Date: Tue, 17 Feb 2015 17:09:23 +0300 Subject: [PATCH] new interface for 'setAsmVerbosityDefault' (appeared in commit 228961) in LLVM 3.7 --- ispc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ispc.cpp b/ispc.cpp index 1db770a0..ccd223b0 100644 --- a/ispc.cpp +++ b/ispc.cpp @@ -921,8 +921,11 @@ Target::Target(const char *arch, const char *cpu, const char *isa, bool pic) : relocModel); Assert(m_targetMachine != NULL); +#if defined(LLVM_3_2) || defined(LLVM_3_3) || defined(LLVM_3_4) || defined(LLVM_3_5) || defined(LLVM_3_6) m_targetMachine->setAsmVerbosityDefault(true); - +#else + m_targetMachine->Options.MCOptions.AsmVerbose = true; +#endif // Initialize TargetData/DataLayout in 3 steps. // 1. Get default data layout first std::string dl_string;