aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2016-08-18 01:33:28 +0000
committerLang Hames <lhames@gmail.com>2016-08-18 01:33:28 +0000
commit75601bf71e43385621c3eea58edb96dbfbb8b16e (patch)
tree2ae97ae97920cb596b7cce6dc2f0771eab491478 /llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp
parent070bcb0d681a8c6e4c1c373a7fa1fc62175bca65 (diff)
downloadllvm-75601bf71e43385621c3eea58edb96dbfbb8b16e.zip
llvm-75601bf71e43385621c3eea58edb96dbfbb8b16e.tar.gz
llvm-75601bf71e43385621c3eea58edb96dbfbb8b16e.tar.bz2
Revert r279016 -- it breaks win32-elf JIT tests.
llvm-svn: 279029
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp
index 3fbca35..e39acc7 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp
@@ -265,8 +265,8 @@ RTDyldMemoryManager::getSymbolAddressInProcess(const std::string &Name) {
const char *NameStr = Name.c_str();
// DynamicLibrary::SearchForAddresOfSymbol expects an unmangled 'C' symbol
- // name so if we're on Darwin or 32-bit Windows, strip the leading '_' off.
-#if defined(__APPLE__) || (defined(_WIN32) && !defined(_WIN64))
+ // name so ff we're on Darwin, strip the leading '_' off.
+#ifdef __APPLE__
if (NameStr[0] == '_')
++NameStr;
#endif