From 65736ac439beb12313d76c5b8bda12b3d0f469da Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Thu, 13 May 2021 18:22:33 -0700 Subject: [PATCH] [ORC] Remove the OrcExecutionTest class. It is no longer used. --- llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h | 43 ---------------------- 1 file changed, 43 deletions(-) diff --git a/llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h b/llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h index d252158..d279235 100644 --- a/llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h +++ b/llvm/unittests/ExecutionEngine/Orc/OrcTestCommon.h @@ -132,49 +132,6 @@ private: 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 TM; - bool SupportsJIT = false; - bool SupportsIndirection = false; -}; - class ModuleBuilder { public: ModuleBuilder(LLVMContext &Context, StringRef Triple, -- 2.7.4