[llvm] 65736ac - [ORC] Remove the OrcExecutionTest class. It is no longer used.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Thu May 13 18:32:48 PDT 2021
Author: Lang Hames
Date: 2021-05-13T18:32:36-07:00
New Revision: 65736ac439beb12313d76c5b8bda12b3d0f469da
URL: https://github.com/llvm/llvm-project/commit/65736ac439beb12313d76c5b8bda12b3d0f469da
DIFF: https://github.com/llvm/llvm-project/commit/65736ac439beb12313d76c5b8bda12b3d0f469da.diff
LOG: [ORC] Remove the OrcExecutionTest class. It is no longer used.
Added:
Modified:
llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h
Removed:
################################################################################
diff --git a/llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h b/llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h
index d2521587ebdb..d27923563952 100644
--- a/llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h
+++ b/llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h
@@ -132,49 +132,6 @@ class SimpleMaterializationUnit : public orc::MaterializationUnit {
DestructorFunction Destructor;
};
-// Base class for Orc tests that will execute code.
-class OrcExecutionTest {
-public:
-
- OrcExecutionTest() {
-
- // Initialize the native target if it hasn't been done already.
- OrcNativeTarget::initialize();
-
- // Try to select a TargetMachine for the host.
- TM.reset(EngineBuilder().selectTarget());
-
- if (TM) {
- // If we found a TargetMachine, check that it's one that Orc supports.
- const Triple& TT = TM->getTargetTriple();
-
- // Bail out for windows platforms. We do not support these yet.
- if ((TT.getArch() != Triple::x86_64 && TT.getArch() != Triple::x86) ||
- TT.isOSWindows())
- return;
-
- // Target can JIT?
- SupportsJIT = TM->getTarget().hasJIT();
- // Use ability to create callback manager to detect whether Orc
- // has indirection support on this platform. This way the test
- // and Orc code do not get out of sync.
- SupportsIndirection = !!orc::createLocalCompileCallbackManager(TT, ES, 0);
- }
- };
-
- ~OrcExecutionTest() {
- if (auto Err = ES.endSession())
- ES.reportError(std::move(Err));
- }
-
-protected:
- orc::ExecutionSession ES;
- LLVMContext Context;
- std::unique_ptr<TargetMachine> TM;
- bool SupportsJIT = false;
- bool SupportsIndirection = false;
-};
-
class ModuleBuilder {
public:
ModuleBuilder(LLVMContext &Context, StringRef Triple,
More information about the llvm-commits
mailing list