mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 15:10:59 +03:00
Drop jit support for pre 5.0 llvm
This commit is contained in:
parent
009570f9a2
commit
c6ec90e8ef
6 changed files with 4 additions and 46 deletions
|
@ -31,7 +31,6 @@
|
|||
#include <llvm/Support/TargetRegistry.h>
|
||||
#include <llvm/Target/TargetMachine.h>
|
||||
|
||||
#if LDC_LLVM_VER >= 500
|
||||
namespace {
|
||||
template <typename T> std::unique_ptr<T> unique(T *ptr) {
|
||||
return std::unique_ptr<T>(ptr);
|
||||
|
@ -346,11 +345,3 @@ void disassemble(const llvm::TargetMachine &tm,
|
|||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
void disassemble(const llvm::TargetMachine & /*tm*/,
|
||||
const llvm::object::ObjectFile & /*object*/,
|
||||
llvm::raw_ostream &os) {
|
||||
os << "Asm output not supported";
|
||||
os.flush();
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue