summaryrefslogtreecommitdiff
path: root/lib/Analysis/BlockFrequencyInfo.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/BlockFrequencyInfo.cpp
parent42e8630239989fd40820975c361554546c1ccc2d (diff)
[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/BlockFrequencyInfo.cpp')
-rw-r--r--lib/Analysis/BlockFrequencyInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/BlockFrequencyInfo.cpp b/lib/Analysis/BlockFrequencyInfo.cpp
index 13ab29a94d3..8ed8e3e4c2e 100644
--- a/lib/Analysis/BlockFrequencyInfo.cpp
+++ b/lib/Analysis/BlockFrequencyInfo.cpp
@@ -11,7 +11,6 @@
//
//===----------------------------------------------------------------------===//
-#define DEBUG_TYPE "block-freq"
#include "llvm/Analysis/BlockFrequencyInfo.h"
#include "llvm/Analysis/BlockFrequencyInfoImpl.h"
#include "llvm/Analysis/BranchProbabilityInfo.h"
@@ -25,6 +24,8 @@
using namespace llvm;
+#define DEBUG_TYPE "block-freq"
+
#ifndef NDEBUG
enum GVDAGType {
GVDT_None,