LLVM API Documentation

llvm::TypePrinting Class Reference

TypePrinting - Type printing machinery. More...

#include <Writer.h>

Collaboration diagram for llvm::TypePrinting:
[legend]

List of all members.

Public Member Functions

 TypePrinting ()
 ~TypePrinting ()
void clear ()
void print (const Type *Ty, raw_ostream &OS, bool IgnoreTopLevelName=false)
void printAtLeastOneLevel (const Type *Ty, raw_ostream &OS)
bool hasTypeName (const Type *Ty) const
void addTypeName (const Type *Ty, const std::string &N)


Detailed Description

TypePrinting - Type printing machinery.

Definition at line 32 of file Writer.h.


Constructor & Destructor Documentation

TypePrinting::TypePrinting (  ) 

Definition at line 155 of file AsmWriter.cpp.

TypePrinting::~TypePrinting (  ) 

Definition at line 159 of file AsmWriter.cpp.

References getTypeNamesMap().


Member Function Documentation

void TypePrinting::clear (  ) 

Definition at line 142 of file AsmWriter.cpp.

References getTypeNamesMap().

Referenced by llvm::DerivedType::unlockedRefineAbstractTypeTo().

void TypePrinting::print ( const Type *  Ty,
raw_ostream &  OS,
bool  IgnoreTopLevelName = false 
)

printTypeInt - The internal guts of printing out a type that has a potentially named portion.

Definition at line 275 of file AsmWriter.cpp.

Referenced by llvm::Type::getDescription(), llvm::Value::print(), printAtLeastOneLevel(), llvm::WriteAsOperand(), WriteConstantInt(), WriteMDNodes(), and llvm::WriteTypeSymbolic().

void llvm::TypePrinting::printAtLeastOneLevel ( const Type *  Ty,
raw_ostream &  OS 
) [inline]

Definition at line 44 of file Writer.h.

References print().

bool TypePrinting::hasTypeName ( const Type *  Ty  )  const

hasTypeName - Return true if the type has a name in TypeNames, false otherwise.

Definition at line 146 of file AsmWriter.cpp.

References getTypeNamesMap().

void TypePrinting::addTypeName ( const Type *  Ty,
const std::string &  N 
)

addTypeName - Add a name for the specified type if it doesn't already have one. This name will be printed instead of the structural version of the type in order to make the output more concise.

Definition at line 150 of file AsmWriter.cpp.

References getTypeNamesMap().

Referenced by AddModuleTypesToPrinter().


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