diff options
| author | Johannes Doerfert <jdoerfert@anl.gov> | 2019-09-04 19:01:08 +0000 |
|---|---|---|
| committer | Johannes Doerfert <jdoerfert@anl.gov> | 2019-09-04 19:01:08 +0000 |
| commit | a7a3b3aa430bef2605bb5c73a9ee79fcbff7a229 (patch) | |
| tree | 7de91055b4b58e862f9de1a3893889b6152e2f76 /llvm/lib/Transforms | |
| parent | b276a9a51e42bc260ff6616112a074d135c5426e (diff) | |
| download | bcm5719-llvm-a7a3b3aa430bef2605bb5c73a9ee79fcbff7a229.tar.gz bcm5719-llvm-a7a3b3aa430bef2605bb5c73a9ee79fcbff7a229.zip | |
[Attributor][Fix] Ensure the attribute names are created properly
The names of the attributes were not always created properly which
caused problems with the yaml output.
llvm-svn: 370956
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/IPO/Attributor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp index a9591212254..04b9c5f8ced 100644 --- a/llvm/lib/Transforms/IPO/Attributor.cpp +++ b/llvm/lib/Transforms/IPO/Attributor.cpp @@ -69,7 +69,9 @@ STATISTIC(NumAttributesManifested, #define BUILD_STAT_MSG_IR_ATTR(TYPE, NAME) \ ("Number of " #TYPE " marked '" #NAME "'") #define BUILD_STAT_NAME(NAME, TYPE) NumIR##TYPE##_##NAME -#define STATS_DECL(NAME, TYPE, MSG) STATISTIC(BUILD_STAT_NAME(NAME, TYPE), MSG); +#define STATS_DECL_(NAME, MSG) STATISTIC(NAME, MSG); +#define STATS_DECL(NAME, TYPE, MSG) \ + STATS_DECL_(BUILD_STAT_NAME(NAME, TYPE), MSG); #define STATS_TRACK(NAME, TYPE) ++(BUILD_STAT_NAME(NAME, TYPE)); #define STATS_DECLTRACK(NAME, TYPE, MSG) \ { \ |

