print cvr qualifiers on simplified typedefs

llvm-svn: 49074
This commit is contained in:
Chris Lattner 2008-04-02 05:06:23 +00:00
parent cb75937198
commit 091718d300
1 changed files with 5 additions and 2 deletions

View File

@ -88,8 +88,11 @@ namespace {
// If the type is directly a typedef, strip off typedefness to give at
// least one level of concreteness.
if (TypedefType *TDT = dyn_cast<TypedefType>(T))
fprintf(F, ":'%s'", TDT->LookThroughTypedefs().getAsString().c_str());
if (TypedefType *TDT = dyn_cast<TypedefType>(T)) {
QualType Simplified =
TDT->LookThroughTypedefs().getQualifiedType(T.getCVRQualifiers());
fprintf(F, ":'%s'", Simplified.getAsString().c_str());
}
}
void DumpStmt(const Stmt *Node) {
Indent();