diff options
author | Craig Topper <craig.topper@intel.com> | 2017-08-10 17:48:11 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-08-10 17:48:11 +0000 |
commit | 9cd976d041de6006d208f3f20fd7d353a383a18b (patch) | |
tree | 44534722725a11575b189a4452c24e53cdad96d5 /llvm/lib/Transforms/Utils/PredicateInfo.cpp | |
parent | 74fbf45f4c92d2c22e6b05b8e4659e47cf6620e1 (diff) | |
download | bcm5719-llvm-9cd976d041de6006d208f3f20fd7d353a383a18b.tar.gz bcm5719-llvm-9cd976d041de6006d208f3f20fd7d353a383a18b.zip |
[DebugCounter] Move the semicolon out of the DEBUG_COUNTER macro and require it to be placed at the end of each use.
This make it consistent with STATISTIC which it will often appears near.
While there move one DEBUG_COUNTER instance out of an anonymous namespace. It's already declaring a static variable so the namespace is unnecessary.
llvm-svn: 310637
Diffstat (limited to 'llvm/lib/Transforms/Utils/PredicateInfo.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/PredicateInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/PredicateInfo.cpp b/llvm/lib/Transforms/Utils/PredicateInfo.cpp index d4cdaede6b8..16b80923bf5 100644 --- a/llvm/lib/Transforms/Utils/PredicateInfo.cpp +++ b/llvm/lib/Transforms/Utils/PredicateInfo.cpp @@ -49,9 +49,10 @@ INITIALIZE_PASS_END(PredicateInfoPrinterLegacyPass, "print-predicateinfo", static cl::opt<bool> VerifyPredicateInfo( "verify-predicateinfo", cl::init(false), cl::Hidden, cl::desc("Verify PredicateInfo in legacy printer pass.")); -namespace { DEBUG_COUNTER(RenameCounter, "predicateinfo-rename", - "Controls which variables are renamed with predicateinfo") + "Controls which variables are renamed with predicateinfo"); + +namespace { // Given a predicate info that is a type of branching terminator, get the // branching block. const BasicBlock *getBranchBlock(const PredicateBase *PB) { |