summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CompilerDriver/Tool.cpp
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-06-29 03:09:15 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-06-29 03:09:15 +0000
commit72f3f7eb564fdb910a9068d47a00ddc70ba6f61d (patch)
treea1de44d525ed8542e7132b0bfc1f22d56915e1e7 /llvm/lib/CompilerDriver/Tool.cpp
parent3a09c8bd5eae1d286119b0d08c1da8eb1ed40e79 (diff)
downloadbcm5719-llvm-72f3f7eb564fdb910a9068d47a00ddc70ba6f61d.tar.gz
bcm5719-llvm-72f3f7eb564fdb910a9068d47a00ddc70ba6f61d.zip
Make dynamic LLVMC plugins work on Windows (finally!).
Implemented by making lib/CompilerDriver a shared library that holds all the global static data (CommandLine options, plugin registry) that we unfortunately have to live with. llvm-svn: 74417
Diffstat (limited to 'llvm/lib/CompilerDriver/Tool.cpp')
-rw-r--r--llvm/lib/CompilerDriver/Tool.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CompilerDriver/Tool.cpp b/llvm/lib/CompilerDriver/Tool.cpp
index e704dd9544f..7953dd24934 100644
--- a/llvm/lib/CompilerDriver/Tool.cpp
+++ b/llvm/lib/CompilerDriver/Tool.cpp
@@ -14,11 +14,17 @@
#include "llvm/CompilerDriver/BuiltinOptions.h"
#include "llvm/CompilerDriver/Tool.h"
+#include "llvm/ADT/StringExtras.h"
#include "llvm/System/Path.h"
using namespace llvm;
using namespace llvmc;
+// SplitString is used by derived Tool classes.
+typedef void (*SplitStringFunPtr)(const std::string&,
+ std::vector<std::string>&, const char*);
+SplitStringFunPtr ForceLinkageSplitString = &llvm::SplitString;
+
namespace {
sys::Path MakeTempFile(const sys::Path& TempDir, const std::string& BaseName,
const std::string& Suffix) {
OpenPOWER on IntegriCloud