Implement getTimeRecord natively in Win32, properly conditionalize the
[oota-llvm.git] / lib / Support / PluginLoader.cpp
index be8833d0096dd303c38704e0379a09b0e3c5cf5a..20bdce494962d21cf1cd57e1733aaa4694d0c57a 100644 (file)
@@ -19,8 +19,7 @@
 
 #include "Support/DynamicLinker.h"
 #include "Support/CommandLine.h"
-#include "Config/dlfcn.h"
-#include "Config/link.h"
+#include "Config/config.h"
 #include <iostream>
 using namespace llvm;
 
@@ -37,5 +36,5 @@ namespace {
 
 // This causes operator= above to be invoked for every -load option.
 static cl::opt<PluginLoader, false, cl::parser<std::string> >
-LoadOpt("load", cl::ZeroOrMore, cl::value_desc("plugin.so"),
+LoadOpt("load", cl::ZeroOrMore, cl::value_desc("plugin" SHLIBEXT),
         cl::desc("Load the specified plugin"));