Add pretty-printing for CodeTextRegions.

llvm-svn: 69694
This commit is contained in:
Ted Kremenek 2009-04-21 18:31:19 +00:00
parent 7421c0161a
commit 99de8ae19c
1 changed files with 10 additions and 0 deletions

View File

@ -157,6 +157,16 @@ void AllocaRegion::print(llvm::raw_ostream& os) const {
os << "alloca{" << (void*) Ex << ',' << Cnt << '}';
}
void CodeTextRegion::print(llvm::raw_ostream& os) const {
os << "code{";
if (isDeclared())
os << getDecl()->getDeclName();
else
os << '$' << getSymbol();
os << '}';
}
void CompoundLiteralRegion::print(llvm::raw_ostream& os) const {
// FIXME: More elaborate pretty-printing.
os << "{ " << (void*) CL << " }";