From: Ted Kremenek Date: Wed, 29 Apr 2009 15:37:24 +0000 (+0000) Subject: MemRegion pretty-printing: Convert DeclName to a string to print out the actual X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82539b09e33914861a60f0947500741ace409eb5;p=clang MemRegion pretty-printing: Convert DeclName to a string to print out the actual name of the tracked function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70381 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/MemRegion.cpp b/lib/Analysis/MemRegion.cpp index ad7e80d724..81855ba61b 100644 --- a/lib/Analysis/MemRegion.cpp +++ b/lib/Analysis/MemRegion.cpp @@ -160,7 +160,7 @@ void AllocaRegion::print(llvm::raw_ostream& os) const { void CodeTextRegion::print(llvm::raw_ostream& os) const { os << "code{"; if (isDeclared()) - os << getDecl()->getDeclName(); + os << getDecl()->getDeclName().getAsString(); else os << '$' << getSymbol();