summaryrefslogtreecommitdiff
path: root/lib/Analysis/InstCount.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-04-22 02:48:03 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-04-22 02:48:03 +0000
commit4da253756ddc62496ad5baf7a8efaf2f001ef92a (patch)
tree84a6fd2a9e2d0d0b4b5d60b696deff43530573d6 /lib/Analysis/InstCount.cpp
parent42e8630239989fd40820975c361554546c1ccc2d (diff)
downloadllvm-4da253756ddc62496ad5baf7a8efaf2f001ef92a.tar.gz
llvm-4da253756ddc62496ad5baf7a8efaf2f001ef92a.tar.bz2
llvm-4da253756ddc62496ad5baf7a8efaf2f001ef92a.tar.xz
[Modules] Fix potential ODR violations by sinking the DEBUG_TYPE
definition below all the header #include lines, lib/Analysis/... edition. This one has a bit extra as there were *other* #define's before #include lines in addition to DEBUG_TYPE. I've sunk all of them as a block. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206843 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/InstCount.cpp')
-rw-r--r--lib/Analysis/InstCount.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/InstCount.cpp b/lib/Analysis/InstCount.cpp
index 6d81bbb5bd..de2b9c0c56 100644
--- a/lib/Analysis/InstCount.cpp
+++ b/lib/Analysis/InstCount.cpp
@@ -11,7 +11,6 @@
//
//===----------------------------------------------------------------------===//
-#define DEBUG_TYPE "instcount"
#include "llvm/Analysis/Passes.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/IR/Function.h"
@@ -22,6 +21,8 @@
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
+#define DEBUG_TYPE "instcount"
+
STATISTIC(TotalInsts , "Number of instructions (of all types)");
STATISTIC(TotalBlocks, "Number of basic blocks");
STATISTIC(TotalFuncs , "Number of non-external functions");