mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-28 07:17:32 +00:00
Get the #ifdef right on LinkAllPasses.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19310 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -16,14 +16,15 @@
|
|||||||
#ifndef LLVM_TRANSFORMS_LINKALLPASSES_H
|
#ifndef LLVM_TRANSFORMS_LINKALLPASSES_H
|
||||||
#define LLVM_TRANSFORMS_LINKALLPASSES_H
|
#define LLVM_TRANSFORMS_LINKALLPASSES_H
|
||||||
|
|
||||||
#ifdef LLVM_ON_WIN32
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
#include "llvm/Transforms/Instrumentation.h"
|
#include "llvm/Transforms/Instrumentation.h"
|
||||||
#include "llvm/Transforms/IPO.h"
|
#include "llvm/Transforms/IPO.h"
|
||||||
#include "llvm/Transforms/Scalar.h"
|
#include "llvm/Transforms/Scalar.h"
|
||||||
#include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h"
|
#include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h"
|
||||||
|
|
||||||
// Trying not to include <windows.h>, though maybe we should...
|
// Trying not to include <windows.h>, though maybe we should... Problem is,
|
||||||
|
// it pollutes the global namespace in some really nasty ways.
|
||||||
extern "C" __declspec(dllimport) void* __stdcall GetCurrentProcess();
|
extern "C" __declspec(dllimport) void* __stdcall GetCurrentProcess();
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
@@ -107,6 +108,6 @@ namespace {
|
|||||||
} X;
|
} X;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // LLVM_ON_WIN32
|
#endif // _MSC_VER
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -12,7 +12,6 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "llvm/Config/config.h"
|
|
||||||
#include "llvm/Module.h"
|
#include "llvm/Module.h"
|
||||||
#include "llvm/PassManager.h"
|
#include "llvm/PassManager.h"
|
||||||
#include "llvm/Bytecode/Reader.h"
|
#include "llvm/Bytecode/Reader.h"
|
||||||
|
Reference in New Issue
Block a user