Revert r279016 -- it breaks win32-elf JIT tests.

llvm-svn: 279029
This commit is contained in:
Lang Hames
2016-08-18 01:33:28 +00:00
parent 070bcb0d68
commit 75601bf71e
2 changed files with 4 additions and 4 deletions

View File

@@ -139,8 +139,8 @@ TEST_F(ExecutionEngineTest, LookupWithMangledAndDemangledSymbol) {
// RTDyldMemoryManager::getSymbolAddressInProcess expects a mangled symbol,
// but DynamicLibrary is a wrapper for dlsym, which expects the unmangled C
// symbol name. This test verifies that getSymbolAddressInProcess strips the
// leading '_' on Darwin and 32-bit Windows, but not on other platforms.
#if defined(__APPLE__) || (defined(_WIN32) && !defined(_WIN64))
// leading '_' on Darwin, but not on other platforms.
#ifdef __APPLE__
EXPECT_EQ(reinterpret_cast<uint64_t>(&x),
RTDyldMemoryManager::getSymbolAddressInProcess("_x"));
#else