LLVM API Documentation

llvm::ExistingModuleProvider Struct Reference

#include <ModuleProvider.h>

Inheritance diagram for llvm::ExistingModuleProvider:

Inheritance graph
[legend]
Collaboration diagram for llvm::ExistingModuleProvider:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ExistingModuleProvider (Module *M)
bool materializeFunction (Function *F, std::string *ErrInfo=0)
ModulematerializeModule (std::string *ErrInfo=0)

Detailed Description

ExistingModuleProvider - Allow conversion from a fully materialized Module into a ModuleProvider, allowing code that expects a ModuleProvider to work if we just have a Module. Note that the ModuleProvider takes ownership of the Module specified.

Definition at line 69 of file ModuleProvider.h.


Constructor & Destructor Documentation

llvm::ExistingModuleProvider::ExistingModuleProvider ( Module M  )  [inline]

Definition at line 70 of file ModuleProvider.h.

References M, and llvm::ModuleProvider::TheModule.


Member Function Documentation

bool llvm::ExistingModuleProvider::materializeFunction ( Function F,
std::string *  ErrInfo = 0 
) [inline, virtual]

materializeFunction - make sure the given function is fully read. If the module is corrupt, this returns true and fills in the optional string with information about the problem. If successful, this returns false.

Implements llvm::ModuleProvider.

Definition at line 73 of file ModuleProvider.h.

Module* llvm::ExistingModuleProvider::materializeModule ( std::string *  ErrInfo = 0  )  [inline, virtual]

materializeModule - make sure the entire Module has been completely read. On error, return null and fill in the error string if specified.

Implements llvm::ModuleProvider.

Definition at line 76 of file ModuleProvider.h.

References llvm::ModuleProvider::TheModule.


The documentation for this struct was generated from the following file: