diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-08-20 01:15:28 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-08-20 01:15:28 +0000 |
commit | 417d566775d923a55fbe9451533dc17ebfad9e7e (patch) | |
tree | a606f2013092386852580e277d94d860b991b492 /clang/lib/Analysis/UninitializedValues.cpp | |
parent | e480b1ef3db1085212db58f467d810a67458b6d6 (diff) | |
download | bcm5719-llvm-417d566775d923a55fbe9451533dc17ebfad9e7e.tar.gz bcm5719-llvm-417d566775d923a55fbe9451533dc17ebfad9e7e.zip |
Remove dead code.
llvm-svn: 138183
Diffstat (limited to 'clang/lib/Analysis/UninitializedValues.cpp')
-rw-r--r-- | clang/lib/Analysis/UninitializedValues.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/clang/lib/Analysis/UninitializedValues.cpp b/clang/lib/Analysis/UninitializedValues.cpp index 84530227dff..77da2427c0f 100644 --- a/clang/lib/Analysis/UninitializedValues.cpp +++ b/clang/lib/Analysis/UninitializedValues.cpp @@ -123,13 +123,7 @@ public: bool hasNoDeclarations() const { return declToIndex.size() == 0; } - - bool hasEntry(const VarDecl *vd) const { - return declToIndex.getValueIndex(vd).hasValue(); - } - - bool hasValues(const CFGBlock *block); - + void resetScratch(); ValueVector &getScratch() { return scratch; } @@ -209,11 +203,6 @@ ValueVector &CFGBlockValues::getValueVector(const CFGBlock *block, return lazyCreate(vals[idx].first); } -bool CFGBlockValues::hasValues(const CFGBlock *block) { - unsigned idx = block->getBlockID(); - return vals[idx].second != 0; -} - BVPair &CFGBlockValues::getValueVectors(const clang::CFGBlock *block, bool shouldLazyCreate) { unsigned idx = block->getBlockID(); @@ -366,7 +355,6 @@ public: flagBlockUses(flagBlockUses), lastDR(0), lastLoad(0), skipProcessUses(false) {} - const CFG &getCFG() { return cfg; } void reportUninit(const DeclRefExpr *ex, const VarDecl *vd, bool isAlwaysUninit); |