summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h')
-rw-r--r--llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h b/llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
index c09c2724881..35af417bf14 100644
--- a/llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
+++ b/llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
@@ -18,7 +18,6 @@
#define LLVM_UNITTESTS_EXECUTIONENGINE_MCJIT_MCJITTESTBASE_H
#include "MCJITTestAPICommon.h"
-#include "llvm/AsmParser/Parser.h"
#include "llvm/Config/config.h"
#include "llvm/ExecutionEngine/ExecutionEngine.h"
#include "llvm/ExecutionEngine/SectionMemoryManager.h"
@@ -28,8 +27,6 @@
#include "llvm/IR/Module.h"
#include "llvm/IR/TypeBuilder.h"
#include "llvm/Support/CodeGen.h"
-#include "llvm/Support/SourceMgr.h"
-#include "llvm/Support/raw_ostream.h"
namespace llvm {
@@ -341,22 +338,6 @@ protected:
assert(TheJIT.get() != NULL && "error creating MCJIT with EngineBuilder");
}
- void createJITFromAssembly(const char *Test) {
- SMDiagnostic Error;
- M = parseAssemblyString(Test, Error, Context);
- M->setTargetTriple(Triple::normalize(BuilderTriple));
-
- std::string errMsg;
- raw_string_ostream os(errMsg);
- Error.print("", os);
-
- // A failure here means that the test itself is buggy.
- if (!M)
- report_fatal_error(os.str().c_str());
-
- createJIT(std::move(M));
- }
-
CodeGenOpt::Level OptLevel;
Reloc::Model RelocModel;
CodeModel::Model CodeModel;
OpenPOWER on IntegriCloud