Implement getTimeRecord natively in Win32, properly conditionalize the
[oota-llvm.git] / lib / Support / PluginLoader.cpp
index 1729bb33655769b8487060778bd3d4e046e16e07..20bdce494962d21cf1cd57e1733aaa4694d0c57a 100644 (file)
 
 #include "Support/DynamicLinker.h"
 #include "Support/CommandLine.h"
-#include "Config/dlfcn.h"
-#include "Config/link.h"
+#include "Config/config.h"
 #include <iostream>
-
-namespace llvm {
+using namespace llvm;
 
 namespace {
   struct PluginLoader {
@@ -38,7 +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"));
-
-} // End llvm namespace