summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/LiveVariables.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-08-02 04:50:49 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-08-02 04:50:49 +0000
commit3c05b7c161d8b7a8928f0d1a193d988f027271e9 (patch)
treec9498d205b8020faeb04e6bbd2be42d418037891 /clang/lib/Analysis/LiveVariables.cpp
parentcfc491d30805036aa5f0c07838f7eb925d63ec54 (diff)
downloadbcm5719-llvm-3c05b7c161d8b7a8928f0d1a193d988f027271e9.tar.gz
bcm5719-llvm-3c05b7c161d8b7a8928f0d1a193d988f027271e9.zip
Make helper functions static.
llvm-svn: 136679
Diffstat (limited to 'clang/lib/Analysis/LiveVariables.cpp')
-rw-r--r--clang/lib/Analysis/LiveVariables.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Analysis/LiveVariables.cpp b/clang/lib/Analysis/LiveVariables.cpp
index f81019e2c9f..c6c091e1295 100644
--- a/clang/lib/Analysis/LiveVariables.cpp
+++ b/clang/lib/Analysis/LiveVariables.cpp
@@ -433,10 +433,11 @@ LiveVariables::computeLiveness(AnalysisContext &AC,
return new LiveVariables(LV);
}
-bool compare_entries(const CFGBlock *A, const CFGBlock *B) {
+static bool compare_entries(const CFGBlock *A, const CFGBlock *B) {
return A->getBlockID() < B->getBlockID();
}
-bool compare_vd_entries(const Decl *A, const Decl *B) {
+
+static bool compare_vd_entries(const Decl *A, const Decl *B) {
SourceLocation ALoc = A->getLocStart();
SourceLocation BLoc = B->getLocStart();
return ALoc.getRawEncoding() < BLoc.getRawEncoding();
OpenPOWER on IntegriCloud