virtual void Profile(llvm::FoldingSetNodeID& ID) const = 0;
std::string getString() const;
+
virtual void print(llvm::raw_ostream& os) const;
Kind getKind() const { return kind; }
+
static bool classof(const MemRegion*) { return true; }
};
SVal getIndex() const { return Index; }
+ void print(llvm::raw_ostream& os) const;
+
void Profile(llvm::FoldingSetNodeID& ID) const;
static bool classof(const MemRegion* R) {
os << "->" << getDecl()->getName();
}
+void ElementRegion::print(llvm::raw_ostream& os) const {
+ superRegion->print(os);
+ os << '['; Index.print(os); os << ']';
+}
+
//===----------------------------------------------------------------------===//
// MemRegionManager methods.
//===----------------------------------------------------------------------===//