mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Stop the JIT from refusing to work just because the program it was compiled into
was built with -static. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110564 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -219,11 +219,6 @@ ExecutionEngine *JIT::createJIT(Module *M,
|
|||||||
StringRef MArch,
|
StringRef MArch,
|
||||||
StringRef MCPU,
|
StringRef MCPU,
|
||||||
const SmallVectorImpl<std::string>& MAttrs) {
|
const SmallVectorImpl<std::string>& MAttrs) {
|
||||||
// Make sure we can resolve symbols in the program as well. The zero arg
|
|
||||||
// to the function tells DynamicLibrary to load the program, not a library.
|
|
||||||
if (sys::DynamicLibrary::LoadLibraryPermanently(0, ErrorStr))
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
// Pick a target either via -march or by guessing the native arch.
|
// Pick a target either via -march or by guessing the native arch.
|
||||||
TargetMachine *TM = JIT::selectTarget(M, MArch, MCPU, MAttrs, ErrorStr);
|
TargetMachine *TM = JIT::selectTarget(M, MArch, MCPU, MAttrs, ErrorStr);
|
||||||
if (!TM || (ErrorStr && ErrorStr->length() > 0)) return 0;
|
if (!TM || (ErrorStr && ErrorStr->length() > 0)) return 0;
|
||||||
|
Reference in New Issue
Block a user