}
void getAsStringInternal(std::string &Str) const;
- void dump(const char *s = 0) const;
+ void dump(const char *s) const;
+ void dump() const;
void Profile(llvm::FoldingSetNodeID &ID) const {
ID.AddPointer(getAsOpaquePtr());
QualType getCanonicalTypeInternal() const { return CanonicalType; }
friend class QualType;
public:
+ void dump() const;
virtual void getAsStringInternal(std::string &InnerString) const = 0;
static bool classof(const Type *) { return true; }
else
fprintf(stderr, "%s\n", R.c_str());
}
+void QualType::dump() const {
+ dump("");
+}
+
+void Type::dump() const {
+ std::string S = "identifier";
+ getAsStringInternal(S);
+ fprintf(stderr, "%s\n", S.c_str());
+}
+
+
static void AppendTypeQualList(std::string &S, unsigned TypeQuals) {
// Note: funkiness to ensure we get a space only between quals.
} else
assert(0 && "Unknown/unexpected decl type");
}
+
// If the operand has type "type", the result has type "pointer to type".
return Context.getPointerType(op->getType());
}