Remove commented methods. Add MemRegion::printStdErr().

llvm-svn: 74709
This commit is contained in:
Ted Kremenek 2009-07-02 17:24:10 +00:00
parent 29ec3e0e50
commit df15d29f17
2 changed files with 7 additions and 4 deletions

View File

@ -62,7 +62,6 @@ protected:
ASTContext &getContext() const;
public:
// virtual MemExtent getExtent(MemRegionManager& mrm) const = 0;
virtual void Profile(llvm::FoldingSetNodeID& ID) const = 0;
virtual MemRegionManager* getMemRegionManager() const = 0;
@ -77,7 +76,9 @@ public:
bool hasHeapOrStackStorage() const;
virtual void print(llvm::raw_ostream& os) const;
virtual void print(llvm::raw_ostream& os) const;
void printStdErr() const;
Kind getKind() const { return kind; }
@ -104,8 +105,6 @@ protected:
}
public:
//RegionExtent getExtent() const { return UndefinedExtent(); }
void Profile(llvm::FoldingSetNodeID& ID) const;
bool isBoundable() const { return false; }

View File

@ -143,6 +143,10 @@ void CodeTextRegion::Profile(llvm::FoldingSetNodeID& ID) const {
// Region pretty-printing.
//===----------------------------------------------------------------------===//
void MemRegion::printStdErr() const {
print(llvm::errs());
}
std::string MemRegion::getString() const {
std::string s;
llvm::raw_string_ostream os(s);