diff options
| author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-09-11 04:13:42 +0000 |
|---|---|---|
| committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-09-11 04:13:42 +0000 |
| commit | dc299bc481532a0e84bbb5b2e0db4a3c8f3feaa7 (patch) | |
| tree | 814b41fe1018c16a48f257fb0d628ebf93bdb3ce /clang/lib/Analysis | |
| parent | bae69143145b994c4bc5ca21fbdb5b7ba8c3151c (diff) | |
| download | bcm5719-llvm-dc299bc481532a0e84bbb5b2e0db4a3c8f3feaa7.tar.gz bcm5719-llvm-dc299bc481532a0e84bbb5b2e0db4a3c8f3feaa7.zip | |
Start to add a new transfer function that inlines callee. To be continued.
llvm-svn: 81501
Diffstat (limited to 'clang/lib/Analysis')
| -rw-r--r-- | clang/lib/Analysis/CallInliner.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/clang/lib/Analysis/CallInliner.cpp b/clang/lib/Analysis/CallInliner.cpp new file mode 100644 index 00000000000..344d14d4bbe --- /dev/null +++ b/clang/lib/Analysis/CallInliner.cpp @@ -0,0 +1,41 @@ +//===--- CallInliner.cpp - Transfer function that inlines callee ----------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the callee inlining transfer function. +// +//===----------------------------------------------------------------------===// + +#include "clang/Analysis/PathSensitive/GRTransferFuncs.h" + +using namespace clang; + +namespace { + +class VISIBILITY_HIDDEN CallInliner : public GRTransferFuncs { + ASTContext &Ctx; +public: + CallInliner(ASTContext &ctx) : Ctx(ctx) {} + + void EvalCall(ExplodedNodeSet& Dst, GRExprEngine& Engine, + GRStmtNodeBuilder& Builder, CallExpr* CE, SVal L, + ExplodedNode* Pred); + +}; + +} + +void CallInliner::EvalCall(ExplodedNodeSet& Dst, GRExprEngine& Engine, + GRStmtNodeBuilder& Builder, CallExpr* CE, SVal L, + ExplodedNode* Pred) { + assert(0 && "TO BE IMPLEMENTED"); +} + +GRTransferFuncs *clang::CreateCallInliner(ASTContext &ctx) { + return new CallInliner(ctx); +} |

