Fix the special case for Windows. FIXE: Try remove ifdef
This commit is contained in:
parent
b4b96a6d85
commit
ed72130ee6
@ -353,7 +353,7 @@ void* IncrementalExecutor::getAddressOfGlobal(llvm::StringRef symbolName,
|
||||
#if !defined(_WIN32)
|
||||
void* Addr = llvm::sys::DynamicLibrary::SearchForAddressOfSymbol(symbolName.str());
|
||||
#else
|
||||
void* Addr = const_cast<void*>(platform::DLSym(Name));
|
||||
void* Addr = const_cast<void*>(platform::DLSym(symbolName.str()));
|
||||
#endif
|
||||
*fromJIT = !Addr;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user