summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Doerfert <jdoerfert@anl.gov>2019-08-20 06:09:56 +0000
committerJohannes Doerfert <jdoerfert@anl.gov>2019-08-20 06:09:56 +0000
commit169af994bcd66ff967441b036500b29d2cbef6c9 (patch)
tree01a367eaa90da0dcdd7f76d569aef32c6142c844
parentcfcca1a5b12df4d05fa4d084c8d6cac37791fa5a (diff)
downloadbcm5719-llvm-169af994bcd66ff967441b036500b29d2cbef6c9.tar.gz
bcm5719-llvm-169af994bcd66ff967441b036500b29d2cbef6c9.zip
[Attributor][NFC] Cleanup statistics code
llvm-svn: 369330
-rw-r--r--llvm/lib/Transforms/IPO/Attributor.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp
index 984501f06a9..1ae658dbd4f 100644
--- a/llvm/lib/Transforms/IPO/Attributor.cpp
+++ b/llvm/lib/Transforms/IPO/Attributor.cpp
@@ -73,8 +73,10 @@ STATISTIC(NumAttributesManifested,
#define STATS_DECL(NAME, TYPE, MSG) STATISTIC(BUILD_STAT_NAME(NAME, TYPE), MSG);
#define STATS_TRACK(NAME, TYPE) ++(BUILD_STAT_NAME(NAME, TYPE));
#define STATS_DECLTRACK(NAME, TYPE, MSG) \
- STATS_DECL(NAME, TYPE, MSG) \
- STATS_TRACK(NAME, TYPE)
+ { \
+ STATS_DECL(NAME, TYPE, MSG) \
+ STATS_TRACK(NAME, TYPE) \
+ }
#define STATS_DECLTRACK_ARG_ATTR(NAME) \
STATS_DECLTRACK(NAME, Arguments, BUILD_STAT_MSG_IR_ATTR(arguments, NAME))
#define STATS_DECLTRACK_CSARG_ATTR(NAME) \
@@ -2099,7 +2101,8 @@ struct AADereferenceableArgument final
/// See AbstractAttribute::trackStatistics()
void trackStatistics() const override{
- STATS_DECLTRACK_ARG_ATTR(dereferenceable)};
+ STATS_DECLTRACK_ARG_ATTR(dereferenceable)
+ }
};
/// Dereferenceable attribute for a call site argument.
@@ -2208,7 +2211,7 @@ struct AAAlignArgument final : AAArgumentFromCallSiteArguments<AAAlignImpl> {
: AAArgumentFromCallSiteArguments<AAAlignImpl>(IRP) {}
/// See AbstractAttribute::trackStatistics()
- void trackStatistics() const override{STATS_DECLTRACK_ARG_ATTR(aligned)};
+ void trackStatistics() const override { STATS_DECLTRACK_ARG_ATTR(aligned) }
};
struct AAAlignCallSiteArgument final : AAAlignFloating {
OpenPOWER on IntegriCloud