aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2011-11-17 01:09:15 +0000
committerAnna Zaks <ganna@apple.com>2011-11-17 01:09:15 +0000
commit8687397a0f5e4c31632959d907f9d9b38d793b1c (patch)
tree86975103ea3d2c76493f44d5a190fb7b60d7ed07 /include
parentf471487ff1e673531543576bc170898c2ab19f41 (diff)
[analyzer] Put CheckerConext::getCalleeName out of line.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144870 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h b/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h
index d5eb95193e..181ff5d475 100644
--- a/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h
+++ b/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h
@@ -143,19 +143,7 @@ public:
}
/// \brief Get the name of the called function (path-sensitive).
- StringRef getCalleeName(const CallExpr *CE) {
- const ProgramState *State = getState();
- const Expr *Callee = CE->getCallee();
- SVal L = State->getSVal(Callee);
-
- const FunctionDecl *funDecl = L.getAsFunctionDecl();
- if (!funDecl)
- return StringRef();
- IdentifierInfo *funI = funDecl->getIdentifier();
- if (!funI)
- return StringRef();
- return funI->getName();
- }
+ StringRef getCalleeName(const CallExpr *CE);
private:
ExplodedNode *addTransitionImpl(const ProgramState *State,