diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-04-20 06:35:22 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-04-20 06:35:22 +0000 |
commit | 5cbe5f9105eae5968229fa2d82fc258e61e27153 (patch) | |
tree | 05650ac02d268f5c03c74dc4f46d9d2134b07334 /lib/Analysis/SVals.cpp | |
parent | 8217f4ed9c652de1f29693eca3958a4a05863bdb (diff) |
Remove loc::FuncVal.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69577 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/SVals.cpp')
-rw-r--r-- | lib/Analysis/SVals.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Analysis/SVals.cpp b/lib/Analysis/SVals.cpp index 875fd36747..8eaeda4b7d 100644 --- a/lib/Analysis/SVals.cpp +++ b/lib/Analysis/SVals.cpp @@ -31,10 +31,6 @@ using llvm::APSInt; //===----------------------------------------------------------------------===// const FunctionDecl* SVal::getAsFunctionDecl() const { - if (const loc::FuncVal* FV = dyn_cast<loc::FuncVal>(this)) { - return FV->getDecl(); - } - if (const loc::MemRegionVal* X = dyn_cast<loc::MemRegionVal>(this)) { const MemRegion* R = X->getRegion(); if (const CodeTextRegion* CTR = dyn_cast<CodeTextRegion>(R)) { @@ -481,11 +477,6 @@ void Loc::print(llvm::raw_ostream& Out) const { Out << '&' << cast<loc::MemRegionVal>(this)->getRegion()->getString(); break; - case loc::FuncValKind: - Out << "function " - << cast<loc::FuncVal>(this)->getDecl()->getIdentifier()->getName(); - break; - default: assert (false && "Pretty-printing not implemented for this Loc."); break; |