mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
Use System/DynamicLibrary instead of Support/DynamicLinker
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18357 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "JIT.h"
|
||||
#include "llvm/Support/DynamicLinker.h"
|
||||
#include "llvm/System/DynamicLibrary.h"
|
||||
#include <iostream>
|
||||
#include <sys/stat.h>
|
||||
using namespace llvm;
|
||||
@@ -96,7 +96,7 @@ void *JIT::getPointerToNamedFunction(const std::string &Name) {
|
||||
if (Name == "__main") return (void*)&__mainFunc;
|
||||
|
||||
// If it's an external function, look it up in the process image...
|
||||
void *Ptr = GetAddressOfSymbol(Name);
|
||||
void *Ptr = sys::DynamicLibrary::SearchForAddressOfSymbol(Name);
|
||||
if (Ptr) return Ptr;
|
||||
|
||||
std::cerr << "ERROR: Program used external function '" << Name
|
||||
|
||||
Reference in New Issue
Block a user