From fdbf2ab5e93ab1531381a8deca2078a6442fd3fb Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Wed, 30 Nov 2016 17:37:32 +0100 Subject: [PATCH] Fix compile errors for LLVM 3.8 --- tools/drawergen/drawergen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/drawergen/drawergen.cpp b/tools/drawergen/drawergen.cpp index db4d896ff0..c31b0229d2 100644 --- a/tools/drawergen/drawergen.cpp +++ b/tools/drawergen/drawergen.cpp @@ -468,7 +468,7 @@ std::vector LLVMProgram::GenerateObjectFile(const std::string &triple, const Target *target = TargetRegistry::lookupTarget(triple, errorstring); -#if LLVM_VERSION_MAJOR < 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR < 8) +#if LLVM_VERSION_MAJOR < 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR < 9) Reloc::Model relocationModel = Reloc::PIC_; #else Optional relocationModel = Reloc::PIC_; @@ -502,7 +502,7 @@ std::vector LLVMProgram::GenerateObjectFile(const std::string &triple, options.MCOptions.MCUseDwarfDirectory = false; options.MCOptions.AsmVerbose = true; -#if LLVM_VERSION_MAJOR > 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >= 8) +#if LLVM_VERSION_MAJOR > 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >= 9) options.Reciprocals = TargetRecip({ "all" }); options.StackSymbolOrdering = true; options.UniqueSectionNames = true;