summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2005-01-06 07:01:08 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2005-01-06 07:01:08 +0000
commit72f8f4cc3d5a3e56c9604799829798e4388a4972 (patch)
tree9bf98e5b97ca0cb7e0c455195ff7900e2f6620df
parent13932fb27fcab825e14556a3d88de266613efb70 (diff)
downloadbcm5719-llvm-72f8f4cc3d5a3e56c9604799829798e4388a4972.tar.gz
bcm5719-llvm-72f8f4cc3d5a3e56c9604799829798e4388a4972.zip
Get the #ifdef right on LinkAllPasses.h.
llvm-svn: 19310
-rw-r--r--llvm/include/llvm/Transforms/LinkAllPasses.h7
-rw-r--r--llvm/tools/opt/opt.cpp1
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/Transforms/LinkAllPasses.h b/llvm/include/llvm/Transforms/LinkAllPasses.h
index aba858a46af..f0d076cb69d 100644
--- a/llvm/include/llvm/Transforms/LinkAllPasses.h
+++ b/llvm/include/llvm/Transforms/LinkAllPasses.h
@@ -16,14 +16,15 @@
#ifndef LLVM_TRANSFORMS_LINKALLPASSES_H
#define LLVM_TRANSFORMS_LINKALLPASSES_H
-#ifdef LLVM_ON_WIN32
+#ifdef _MSC_VER
#include "llvm/Transforms/Instrumentation.h"
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/Scalar.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();
namespace {
@@ -107,6 +108,6 @@ namespace {
} X;
};
-#endif // LLVM_ON_WIN32
+#endif // _MSC_VER
#endif
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp
index 2ae357c3944..fd339d92d98 100644
--- a/llvm/tools/opt/opt.cpp
+++ b/llvm/tools/opt/opt.cpp
@@ -12,7 +12,6 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/Config/config.h"
#include "llvm/Module.h"
#include "llvm/PassManager.h"
#include "llvm/Bytecode/Reader.h"
OpenPOWER on IntegriCloud