Skip to content

Commit

Permalink
fix non-ORCJIT build
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Aug 9, 2016
1 parent 008d8e7 commit 1d0251e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/jitlayers.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,6 @@ extern PassManager *jl_globalPM;
#include <llvm/Target/TargetMachine.h>
#endif

#ifdef LLVM40
typedef JITSymbol JL_JITSymbol;
// The type that is similar to SymbolInfo on LLVM 4.0 is actually
// `JITEvaluatedSymbol`. However, we only use this type when a JITSymbol
// is expected.
typedef JITSymbol JL_SymbolInfo;
#else
typedef orc::JITSymbol JL_JITSymbol;
typedef RuntimeDyld::SymbolInfo JL_SymbolInfo;
#endif

extern "C" {
extern int globalUnique;
}
Expand Down Expand Up @@ -163,6 +152,17 @@ static inline void add_named_global(GlobalValue *gv, T *addr, bool dllimport = t

void jl_init_jit(Type *T_pjlvalue_);
#ifdef USE_ORCJIT
#ifdef LLVM40
typedef JITSymbol JL_JITSymbol;
// The type that is similar to SymbolInfo on LLVM 4.0 is actually
// `JITEvaluatedSymbol`. However, we only use this type when a JITSymbol
// is expected.
typedef JITSymbol JL_SymbolInfo;
#else
typedef orc::JITSymbol JL_JITSymbol;
typedef RuntimeDyld::SymbolInfo JL_SymbolInfo;
#endif

class JuliaOJIT {
// Custom object emission notification handler for the JuliaOJIT
// TODO: hook up RegisterJITEventListener, instead of hard-coding the GDB and JuliaListener targets
Expand Down

0 comments on commit 1d0251e

Please sign in to comment.