Remove the include to IncrementalExecutor.

This exposed a set of missing includes and constructors to destroy the
backend passes.
This commit is contained in:
Vassil Vassilev 2020-10-10 18:34:55 +00:00 committed by jenkins
parent d466a98e30
commit 74f74a7d0b
4 changed files with 13 additions and 9 deletions

View File

@ -117,6 +117,17 @@ namespace {
char UniqueCUDAStructorName::ID = 0;
BackendPasses::BackendPasses(const clang::CodeGenOptions &CGOpts,
const clang::TargetOptions & /*TOpts*/,
const clang::LangOptions & /*LOpts*/,
llvm::TargetMachine& TM):
m_TM(TM),
m_CGOpts(CGOpts) //,
//m_TOpts(TOpts),
//m_LOpts(LOpts)
{}
BackendPasses::~BackendPasses() {
//delete m_PMBuilder->Inliner;
}

View File

@ -52,13 +52,7 @@ namespace cling {
BackendPasses(const clang::CodeGenOptions &CGOpts,
const clang::TargetOptions & /*TOpts*/,
const clang::LangOptions & /*LOpts*/,
llvm::TargetMachine& TM):
m_TM(TM),
m_CGOpts(CGOpts) //,
//m_TOpts(TOpts),
//m_LOpts(LOpts)
{}
llvm::TargetMachine& TM);
~BackendPasses();
void runOnModule(llvm::Module& M, int OptLevel);

View File

@ -8,6 +8,7 @@
//------------------------------------------------------------------------------
#include "IncrementalExecutor.h"
#include "BackendPasses.h"
#include "IncrementalJIT.h"
#include "Threading.h"
@ -25,7 +26,6 @@
#include "llvm/IR/Instructions.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Support/Host.h"

View File

@ -19,7 +19,6 @@
#include "DefinitionShadower.h"
#include "DeviceKernelInliner.h"
#include "DynamicLookup.h"
#include "IncrementalExecutor.h"
#include "NullDerefProtectionTransformer.h"
#include "TransactionPool.h"
#include "ValueExtractionSynthesizer.h"