X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FSupport%2FPluginLoader.cpp;h=20bdce494962d21cf1cd57e1733aaa4694d0c57a;hb=b4db5f3e4b24bfc515bc615b2b6256083c7ef508;hp=4cacd01613368a7e82f4126c20379ff4739f56a0;hpb=56d86168720849e94cb39809a29e7c391300460d;p=oota-llvm.git diff --git a/lib/Support/PluginLoader.cpp b/lib/Support/PluginLoader.cpp index 4cacd016133..20bdce49496 100644 --- a/lib/Support/PluginLoader.cpp +++ b/lib/Support/PluginLoader.cpp @@ -1,4 +1,11 @@ //===-- PluginLoader.cpp - Implement -load command line option ------------===// +// +// The LLVM Compiler Infrastructure +// +// This file was developed by the LLVM research group and is distributed under +// the University of Illinois Open Source License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// // // This file implements the -load command line option processor. When // linked into a program, this new command line option is available that allows @@ -12,9 +19,9 @@ #include "Support/DynamicLinker.h" #include "Support/CommandLine.h" -#include "Config/dlfcn.h" -#include "Config/link.h" +#include "Config/config.h" #include +using namespace llvm; namespace { struct PluginLoader { @@ -29,5 +36,5 @@ namespace { // This causes operator= above to be invoked for every -load option. static cl::opt > -LoadOpt("load", cl::ZeroOrMore, cl::value_desc("plugin.so"), +LoadOpt("load", cl::ZeroOrMore, cl::value_desc("plugin" SHLIBEXT), cl::desc("Load the specified plugin"));