LLVM 18.0.0git
|
#include "llvm/DebugInfo/DWARF/DWARFTypePrinter.h"
Public Attributes | |
raw_ostream & | OS |
bool | Word = true |
bool | EndedWithTemplate = false |
Definition at line 24 of file DWARFTypePrinter.h.
|
inline |
Definition at line 29 of file DWARFTypePrinter.h.
Definition at line 18 of file DWARFTypePrinter.cpp.
References llvm::CallingConv::C, D, EndedWithTemplate, llvm::dwarf::LanguageLowerBound(), and OS.
Referenced by appendUnqualifiedNameAfter().
void llvm::DWARFTypePrinter::appendConstVolatileQualifierAfter | ( | DWARFDie | N | ) |
Definition at line 473 of file DWARFTypePrinter.cpp.
References appendSubroutineNameAfter(), appendUnqualifiedNameAfter(), llvm::CallingConv::C, decomposeConstVolatile(), N, llvm::resolveReferencedType(), and T.
Referenced by appendUnqualifiedNameAfter().
void llvm::DWARFTypePrinter::appendConstVolatileQualifierBefore | ( | DWARFDie | N | ) |
Definition at line 484 of file DWARFTypePrinter.cpp.
References A, appendQualifiedNameBefore(), llvm::CallingConv::C, decomposeConstVolatile(), N, OS, llvm::resolveReferencedType(), T, and Word.
Referenced by appendUnqualifiedNameBefore().
void llvm::DWARFTypePrinter::appendPointerLikeTypeBefore | ( | DWARFDie | D, |
DWARFDie | Inner, | ||
StringRef | Ptr | ||
) |
Definition at line 85 of file DWARFTypePrinter.cpp.
References appendQualifiedNameBefore(), EndedWithTemplate, needsParens(), OS, Ptr, and Word.
Referenced by appendUnqualifiedNameBefore().
void llvm::DWARFTypePrinter::appendQualifiedName | ( | DWARFDie | D | ) |
Definition at line 299 of file DWARFTypePrinter.cpp.
References appendScopes(), appendUnqualifiedName(), D, and llvm::scopedTAGs().
Referenced by appendSubroutineNameAfter(), appendTemplateParameters(), appendUnqualifiedNameBefore(), and llvm::dumpTypeQualifiedName().
Definition at line 304 of file DWARFTypePrinter.cpp.
References appendScopes(), appendUnqualifiedNameBefore(), D, and llvm::scopedTAGs().
Referenced by appendConstVolatileQualifierBefore(), appendPointerLikeTypeBefore(), and appendUnqualifiedNameBefore().
void llvm::DWARFTypePrinter::appendScopes | ( | DWARFDie | D | ) |
Definition at line 640 of file DWARFTypePrinter.cpp.
References appendScopes(), appendUnqualifiedName(), D, OS, and P.
Referenced by appendQualifiedName(), appendQualifiedNameBefore(), and appendScopes().
void llvm::DWARFTypePrinter::appendSubroutineNameAfter | ( | DWARFDie | D, |
DWARFDie | Inner, | ||
bool | SkipFirstParamIfArtificial, | ||
bool | Const, | ||
bool | Volatile | ||
) |
Definition at line 522 of file DWARFTypePrinter.cpp.
References appendQualifiedName(), appendUnqualifiedNameAfter(), CC, D, EndedWithTemplate, llvm::First, OS, P, llvm::resolveReferencedType(), and T.
Referenced by appendConstVolatileQualifierAfter(), and appendUnqualifiedNameAfter().
bool llvm::DWARFTypePrinter::appendTemplateParameters | ( | DWARFDie | D, |
bool * | FirstParameter = nullptr |
||
) |
Definition at line 309 of file DWARFTypePrinter.cpp.
References appendQualifiedName(), appendTemplateParameters(), assert(), llvm::CallingConv::C, D, EndedWithTemplate, llvm::format(), Name, OS, llvm::resolveReferencedType(), and llvm::dwarf::toString().
Referenced by appendTemplateParameters(), and appendUnqualifiedNameBefore().
void llvm::DWARFTypePrinter::appendTypeTagName | ( | dwarf::Tag | T | ) |
Dump the name encoded in the type tag.
Definition at line 7 of file DWARFTypePrinter.cpp.
References llvm::StringRef::ends_with(), OS, llvm::StringRef::size(), llvm::StringRef::starts_with(), llvm::StringRef::substr(), and llvm::dwarf::TagString().
Referenced by appendUnqualifiedNameBefore().
void llvm::DWARFTypePrinter::appendUnqualifiedName | ( | DWARFDie | D, |
std::string * | OriginalFullName = nullptr |
||
) |
Recursively append the DIE type name when applicable.
Definition at line 515 of file DWARFTypePrinter.cpp.
References appendUnqualifiedNameAfter(), appendUnqualifiedNameBefore(), and D.
Referenced by appendQualifiedName(), appendScopes(), and llvm::dumpTypeUnqualifiedName().
void llvm::DWARFTypePrinter::appendUnqualifiedNameAfter | ( | DWARFDie | D, |
DWARFDie | Inner, | ||
bool | SkipFirstParamIfArtificial = false |
||
) |
Definition at line 215 of file DWARFTypePrinter.cpp.
References appendArrayType(), appendConstVolatileQualifierAfter(), appendSubroutineNameAfter(), appendUnqualifiedNameAfter(), D, needsParens(), OS, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::resolveReferencedType(), and llvm::raw_string_ostream::str().
Referenced by appendConstVolatileQualifierAfter(), appendSubroutineNameAfter(), appendUnqualifiedName(), and appendUnqualifiedNameAfter().
DWARFDie llvm::DWARFTypePrinter::appendUnqualifiedNameBefore | ( | DWARFDie | D, |
std::string * | OriginalFullName = nullptr |
||
) |
Definition at line 98 of file DWARFTypePrinter.cpp.
References appendConstVolatileQualifierBefore(), appendPointerLikeTypeBefore(), appendQualifiedName(), appendQualifiedNameBefore(), appendTemplateParameters(), appendTypeTagName(), assert(), D, EndedWithTemplate, Name, needsParens(), llvm::StringRef::npos, OS, llvm::resolveReferencedType(), llvm::StringRef::size(), llvm::dwarf::toString(), and Word.
Referenced by appendQualifiedNameBefore(), and appendUnqualifiedName().
void llvm::DWARFTypePrinter::decomposeConstVolatile | ( | DWARFDie & | N, |
DWARFDie & | T, | ||
DWARFDie & | C, | ||
DWARFDie & | V | ||
) |
Definition at line 458 of file DWARFTypePrinter.cpp.
References llvm::CallingConv::C, N, llvm::resolveReferencedType(), and T.
Referenced by appendConstVolatileQualifierAfter(), and appendConstVolatileQualifierBefore().
Definition at line 79 of file DWARFTypePrinter.cpp.
References D, and skipQualifiers().
Referenced by appendPointerLikeTypeBefore(), appendUnqualifiedNameAfter(), and appendUnqualifiedNameBefore().
Definition at line 72 of file DWARFTypePrinter.cpp.
References D, and llvm::resolveReferencedType().
Referenced by needsParens().
bool llvm::DWARFTypePrinter::EndedWithTemplate = false |
Definition at line 27 of file DWARFTypePrinter.h.
Referenced by appendArrayType(), appendPointerLikeTypeBefore(), appendSubroutineNameAfter(), appendTemplateParameters(), and appendUnqualifiedNameBefore().
raw_ostream& llvm::DWARFTypePrinter::OS |
Definition at line 25 of file DWARFTypePrinter.h.
Referenced by appendArrayType(), appendConstVolatileQualifierBefore(), appendPointerLikeTypeBefore(), appendScopes(), appendSubroutineNameAfter(), appendTemplateParameters(), appendTypeTagName(), appendUnqualifiedNameAfter(), and appendUnqualifiedNameBefore().
Definition at line 26 of file DWARFTypePrinter.h.
Referenced by appendConstVolatileQualifierBefore(), appendPointerLikeTypeBefore(), and appendUnqualifiedNameBefore().