mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-18 10:31:57 +00:00
When creating a JIT, try to load the program so that we can resolve symbols
against it. This affects Windows. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111240 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
73c32f60c4
commit
83a82ac0b4
@ -219,6 +219,9 @@ ExecutionEngine *JIT::createJIT(Module *M,
|
||||
StringRef MArch,
|
||||
StringRef MCPU,
|
||||
const SmallVectorImpl<std::string>& MAttrs) {
|
||||
// Try to register the program as a source of symbols to resolve against.
|
||||
sys::DynamicLibrary::LoadLibraryPermanently(0, NULL);
|
||||
|
||||
// Pick a target either via -march or by guessing the native arch.
|
||||
TargetMachine *TM = JIT::selectTarget(M, MArch, MCPU, MAttrs, ErrorStr);
|
||||
if (!TM || (ErrorStr && ErrorStr->length() > 0)) return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user