LLVM API Documentation

llvm::FindUsedTypes Class Reference

#include <FindUsedTypes.h>

Inheritance diagram for llvm::FindUsedTypes:
[legend]
Collaboration diagram for llvm::FindUsedTypes:
[legend]

List of all members.

Public Member Functions

 FindUsedTypes ()
const std::set< const Type * > & getTypes () const
void print (std::ostream &o, const Module *M) const
void print (std::ostream *o, const Module *M) const
bool runOnModule (Module &M)
 run - This incorporates all types used by the specified module
virtual void getAnalysisUsage (AnalysisUsage &AU) const
 getAnalysisUsage - We do not modify anything.

Static Public Attributes

static char ID = 0


Detailed Description

Definition at line 25 of file FindUsedTypes.h.


Constructor & Destructor Documentation

llvm::FindUsedTypes::FindUsedTypes (  )  [inline]

Definition at line 29 of file FindUsedTypes.h.


Member Function Documentation

const std::set<const Type *>& llvm::FindUsedTypes::getTypes (  )  const [inline]

getTypes - After the pass has been run, return the set containing all of the types used in the module.

Definition at line 34 of file FindUsedTypes.h.

void FindUsedTypes::print ( std::ostream &  o,
const Module *  M 
) const [virtual]

Print the types found in the module. If the optional Module parameter is passed in, then the types are printed symbolically if possible, using the symbol table from the module.

Reimplemented from llvm::Pass.

Definition at line 94 of file FindUsedTypes.cpp.

References E, UsedTypes, and llvm::WriteTypeSymbolic().

Referenced by print().

void llvm::FindUsedTypes::print ( std::ostream *  o,
const Module *  M 
) const [inline]

Reimplemented from llvm::Pass.

Definition at line 41 of file FindUsedTypes.h.

References print().

bool FindUsedTypes::runOnModule ( Module &  M  )  [virtual]

virtual void llvm::FindUsedTypes::getAnalysisUsage ( AnalysisUsage &  AU  )  const [inline, virtual]

getAnalysisUsage - We do not modify anything.

Reimplemented from llvm::Pass.

Definition at line 58 of file FindUsedTypes.h.

References llvm::AnalysisUsage::setPreservesAll().


Member Data Documentation

char FindUsedTypes::ID = 0 [static]

Definition at line 28 of file FindUsedTypes.h.


The documentation for this class was generated from the following files: