llvm::PluginLoader

Loads shared-object plugins into a tool via the -load option.

Synopsis

Declared in <llvm/Support/PluginLoader.h>

struct PluginLoader;

Description

Used as the value type of a cl::opt so each -load argument invokes operator= to load the named plugin. This header may be included only once per program and is not for use by library authors.

Member Functions

NameDescription
operator= Load the shared library named Filename into the process.

Static Member Functions

NameDescription
getNumPlugins Return the number of plugins successfully loaded.
getPlugin Return the path of the loaded plugin at index num.