Remove the include to IncrementalExecutor.
This exposed a set of missing includes and constructors to destroy the backend passes.
This commit is contained in:
parent
d466a98e30
commit
74f74a7d0b
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user