Silence warnings.

This commit is contained in:
Axel Naumann 2016-12-01 10:03:22 +01:00 committed by sftnight
parent f98f5a0096
commit 4b5f2c6b15
3 changed files with 11 additions and 9 deletions

View File

@ -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;

View File

@ -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();

View File

@ -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) {