LLVM API Documentation
#include <Writer.h>
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) |
Definition at line 32 of file Writer.h.
| TypePrinting::TypePrinting | ( | ) |
Definition at line 155 of file AsmWriter.cpp.
| TypePrinting::~TypePrinting | ( | ) |
| 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] |
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().