mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
Fix compile errors for LLVM 3.8
This commit is contained in:
parent
3872e39afc
commit
fdbf2ab5e9
1 changed files with 2 additions and 2 deletions
|
@ -468,7 +468,7 @@ std::vector<uint8_t> LLVMProgram::GenerateObjectFile(const std::string &triple,
|
||||||
|
|
||||||
const Target *target = TargetRegistry::lookupTarget(triple, errorstring);
|
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_;
|
Reloc::Model relocationModel = Reloc::PIC_;
|
||||||
#else
|
#else
|
||||||
Optional<Reloc::Model> relocationModel = Reloc::PIC_;
|
Optional<Reloc::Model> relocationModel = Reloc::PIC_;
|
||||||
|
@ -502,7 +502,7 @@ std::vector<uint8_t> LLVMProgram::GenerateObjectFile(const std::string &triple,
|
||||||
options.MCOptions.MCUseDwarfDirectory = false;
|
options.MCOptions.MCUseDwarfDirectory = false;
|
||||||
options.MCOptions.AsmVerbose = true;
|
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.Reciprocals = TargetRecip({ "all" });
|
||||||
options.StackSymbolOrdering = true;
|
options.StackSymbolOrdering = true;
|
||||||
options.UniqueSectionNames = true;
|
options.UniqueSectionNames = true;
|
||||||
|
|
Loading…
Reference in a new issue