[llvm] r258031 - [Orc] Enable ORC execution unit tests on non-windows platforms.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 17 16:47:25 PST 2016


Author: lhames
Date: Sun Jan 17 18:47:25 2016
New Revision: 258031

URL: http://llvm.org/viewvc/llvm-project?rev=258031&view=rev
Log:
[Orc] Enable ORC execution unit tests on non-windows platforms.

Previously these were Darwin-only. Since the switch to direct binary emission
of stubs, trampolines and resolver blocks, these should work on other *nix
platforms too.

These tests can be enabled on Windows once known issues with ORC's handling of
Windows symbol mangling (see e.g. https://llvm.org/PR25940) have been fixed.

Modified:
    llvm/trunk/unittests/ExecutionEngine/Orc/OrcTestCommon.h

Modified: llvm/trunk/unittests/ExecutionEngine/Orc/OrcTestCommon.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/Orc/OrcTestCommon.h?rev=258031&r1=258030&r2=258031&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/Orc/OrcTestCommon.h (original)
+++ llvm/trunk/unittests/ExecutionEngine/Orc/OrcTestCommon.h Sun Jan 17 18:47:25 2016
@@ -46,7 +46,7 @@ public:
     if (TM) {
       // If we found a TargetMachine, check that it's one that Orc supports.
       const Triple& TT = TM->getTargetTriple();
-      if (TT.getArch() != Triple::x86_64 || !TT.isOSDarwin())
+      if (TT.getArch() != Triple::x86_64 || TT.isOSWindows())
         TM = nullptr;
     }
   };




More information about the llvm-commits mailing list