Browse Source

Place warning pragmas for LLVM includes in separated files

cl-refactor
Paweł Bylica 10 years ago
parent
commit
33205fb9c9
  1. 8
      evmjit/libevmjit/ExecutionEngine.cpp
  2. 3
      evmjit/libevmjit/preprocessor/llvm_includes_end.h
  3. 4
      evmjit/libevmjit/preprocessor/llvm_includes_start.h

8
evmjit/libevmjit/ExecutionEngine.cpp

@ -2,19 +2,15 @@
#include <chrono>
#include <cstdlib> // env options
#include "preprocessor/llvm_includes_start.h"
#include <llvm/IR/Module.h>
#include <llvm/ADT/Triple.h>
#pragma warning(push)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <llvm/ExecutionEngine/ExecutionEngine.h>
#include <llvm/ExecutionEngine/SectionMemoryManager.h>
#pragma warning(pop)
#pragma GCC diagnostic pop
#include <llvm/ExecutionEngine/MCJIT.h>
#include <llvm/Support/TargetSelect.h>
#include <llvm/Support/Host.h>
#include "preprocessor/llvm_includes_end.h"
#include "Runtime.h"
#include "Compiler.h"

3
evmjit/libevmjit/preprocessor/llvm_includes_end.h

@ -0,0 +1,3 @@
#pragma warning(pop)
#pragma GCC diagnostic pop

4
evmjit/libevmjit/preprocessor/llvm_includes_start.h

@ -0,0 +1,4 @@
#pragma warning(push)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
Loading…
Cancel
Save