mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 09:31:03 +03:00
Drop support for LLVM < 3.5
This allows to clean up the code a little.
This commit is contained in:
parent
8eab25f2fa
commit
60d676e2a1
57 changed files with 35 additions and 1019 deletions
|
@ -29,10 +29,8 @@ static std::string findProgramByName(const std::string& name)
|
|||
#if LDC_LLVM_VER >= 306
|
||||
llvm::ErrorOr<std::string> res = llvm::sys::findProgramByName(name);
|
||||
return res ? res.get() : std::string();
|
||||
#elif LDC_LLVM_VER >= 304
|
||||
return llvm::sys::FindProgramByName(name);
|
||||
#else
|
||||
return llvm::sys::Program::FindProgramByName(name).str();
|
||||
return llvm::sys::FindProgramByName(name);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue