diff options
author | Chris Lattner <sabre@nondot.org> | 2010-08-18 02:45:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-08-18 02:45:56 +0000 |
commit | 2a2a468d1aabd8c72f903415bb67616658bfdc70 (patch) | |
tree | 85ea9cf40fa5dbc7e366dce7ae8a4c118232e186 /clang/lib/Checker/BugReporter.cpp | |
parent | e876fcd77af9219427cfbf2a4a68a234616a2b2a (diff) | |
download | bcm5719-llvm-2a2a468d1aabd8c72f903415bb67616658bfdc70.tar.gz bcm5719-llvm-2a2a468d1aabd8c72f903415bb67616658bfdc70.zip |
zap dead code.
llvm-svn: 111347
Diffstat (limited to 'clang/lib/Checker/BugReporter.cpp')
-rw-r--r-- | clang/lib/Checker/BugReporter.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/clang/lib/Checker/BugReporter.cpp b/clang/lib/Checker/BugReporter.cpp index 90ae459e64c..ca3c4258e11 100644 --- a/clang/lib/Checker/BugReporter.cpp +++ b/clang/lib/Checker/BugReporter.cpp @@ -177,18 +177,9 @@ public: } virtual NodeMapClosure& getNodeResolver() { return NMC; } - BugReport& getReport() { return *R; } PathDiagnosticLocation getEnclosingStmtLocation(const Stmt *S); - PathDiagnosticLocation - getEnclosingStmtLocation(const PathDiagnosticLocation &L) { - if (const Stmt *S = L.asStmt()) - return getEnclosingStmtLocation(S); - - return L; - } - PathDiagnosticClient::PathGenerationScheme getGenerationScheme() const { return PDC ? PDC->getGenerationScheme() : PathDiagnosticClient::Extensive; } @@ -902,8 +893,6 @@ class EdgeBuilder { CLocs.pop_back(); } - PathDiagnosticLocation IgnoreParens(const PathDiagnosticLocation &L); - public: EdgeBuilder(PathDiagnostic &pd, PathDiagnosticBuilder &pdb) : PD(pd), PDB(pdb) { @@ -935,10 +924,6 @@ public: void addEdge(PathDiagnosticLocation NewLoc, bool alwaysAdd = false); - void addEdge(const Stmt *S, bool alwaysAdd = false) { - addEdge(PathDiagnosticLocation(S, PDB.getSourceManager()), alwaysAdd); - } - void rawAddEdge(PathDiagnosticLocation NewLoc); void addContext(const Stmt *S); @@ -1006,14 +991,6 @@ bool EdgeBuilder::containsLocation(const PathDiagnosticLocation &Container, SM.getInstantiationColumnNumber(ContainerREnd))); } -PathDiagnosticLocation -EdgeBuilder::IgnoreParens(const PathDiagnosticLocation &L) { - if (const Expr* E = dyn_cast_or_null<Expr>(L.asStmt())) - return PathDiagnosticLocation(E->IgnoreParenCasts(), - PDB.getSourceManager()); - return L; -} - void EdgeBuilder::rawAddEdge(PathDiagnosticLocation NewLoc) { if (!PrevLoc.isValid()) { PrevLoc = NewLoc; |