Silence warnings.
This commit is contained in:
parent
f98f5a0096
commit
4b5f2c6b15
@ -21,8 +21,8 @@
|
||||
#include "llvm/Transforms/IPO/PassManagerBuilder.h"
|
||||
#include "llvm/Transforms/Scalar.h"
|
||||
|
||||
#include "clang/Basic/LangOptions.h"
|
||||
#include "clang/Basic/TargetOptions.h"
|
||||
//#include "clang/Basic/LangOptions.h"
|
||||
//#include "clang/Basic/TargetOptions.h"
|
||||
#include "clang/Frontend/CodeGenOptions.h"
|
||||
|
||||
using namespace cling;
|
||||
|
@ -40,20 +40,20 @@ namespace cling {
|
||||
|
||||
llvm::TargetMachine& m_TM;
|
||||
const clang::CodeGenOptions &m_CGOpts;
|
||||
const clang::TargetOptions &m_TOpts;
|
||||
const clang::LangOptions &m_LOpts;
|
||||
//const clang::TargetOptions &m_TOpts;
|
||||
//const clang::LangOptions &m_LOpts;
|
||||
|
||||
void CreatePasses(llvm::Module& M);
|
||||
|
||||
public:
|
||||
BackendPasses(const clang::CodeGenOptions &CGOpts,
|
||||
const clang::TargetOptions &TOpts,
|
||||
const clang::LangOptions &LOpts,
|
||||
const clang::TargetOptions & /*TOpts*/,
|
||||
const clang::LangOptions & /*LOpts*/,
|
||||
llvm::TargetMachine& TM):
|
||||
m_TM(TM),
|
||||
m_CGOpts(CGOpts),
|
||||
m_TOpts(TOpts),
|
||||
m_LOpts(LOpts)
|
||||
m_CGOpts(CGOpts) //,
|
||||
//m_TOpts(TOpts),
|
||||
//m_LOpts(LOpts)
|
||||
{}
|
||||
|
||||
~BackendPasses();
|
||||
|
@ -472,6 +472,7 @@ namespace {
|
||||
return &Cmd->getArguments();
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
std::string stringifyPreprocSetting(const char* name, int val) {
|
||||
std::string ret(name);
|
||||
{
|
||||
@ -483,6 +484,7 @@ std::string stringifyPreprocSetting(const char* name, int val) {
|
||||
|
||||
#define STRINGIFY_PREPROC_SETTING(name) \
|
||||
stringifyPreprocSetting(#name, name).c_str()
|
||||
#endif
|
||||
|
||||
/// Set cling's preprocessor defines to match the cling binary.
|
||||
static void SetPreprocessorFromBinary(PreprocessorOptions& PPOpts) {
|
||||
|
Loading…
Reference in New Issue
Block a user