diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-04-21 19:56:58 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-04-21 19:56:58 +0000 |
commit | 72e032004b0d2c2c298e8e4f7027f23a21c0cc7d (patch) | |
tree | 5e21deed7d9e571080866fe712f59e3a25143e13 /lib/Analysis/MemRegion.cpp | |
parent | ca790923930ca8df23bc1473fe925586e27387a6 (diff) |
Recommit 69694 but this time also include the header changes (sorry for breaking
the build).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69702 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/MemRegion.cpp')
-rw-r--r-- | lib/Analysis/MemRegion.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Analysis/MemRegion.cpp b/lib/Analysis/MemRegion.cpp index 5e71924bf9..ad7e80d724 100644 --- a/lib/Analysis/MemRegion.cpp +++ b/lib/Analysis/MemRegion.cpp @@ -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 << " }"; |