summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalUnion.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-04-22 02:02:50 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-04-22 02:02:50 +0000
commit1b9dde087e0eeee0d3df30799a911b6e3f3ef46c (patch)
tree9af2c43d737b3d803afd2301d1871c4919ae3d98 /llvm/lib/CodeGen/LiveIntervalUnion.cpp
parent23ef27cd46a53a36e9b1e88d952796249f0c32c5 (diff)
downloadbcm5719-llvm-1b9dde087e0eeee0d3df30799a911b6e3f3ef46c.tar.gz
bcm5719-llvm-1b9dde087e0eeee0d3df30799a911b6e3f3ef46c.zip
[Modules] Remove potential ODR violations by sinking the DEBUG_TYPE
define below all header includes in the lib/CodeGen/... tree. While the current modules implementation doesn't check for this kind of ODR violation yet, it is likely to grow support for it in the future. It also removes one layer of macro pollution across all the included headers. Other sub-trees will follow. llvm-svn: 206837
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalUnion.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalUnion.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalUnion.cpp b/llvm/lib/CodeGen/LiveIntervalUnion.cpp
index fceb62b9238..d81221b6a52 100644
--- a/llvm/lib/CodeGen/LiveIntervalUnion.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalUnion.cpp
@@ -13,7 +13,6 @@
//
//===----------------------------------------------------------------------===//
-#define DEBUG_TYPE "regalloc"
#include "llvm/CodeGen/LiveIntervalUnion.h"
#include "llvm/ADT/SparseBitVector.h"
#include "llvm/Support/Debug.h"
@@ -23,6 +22,8 @@
using namespace llvm;
+#define DEBUG_TYPE "regalloc"
+
// Merge a LiveInterval's segments. Guarantee no overlaps.
void LiveIntervalUnion::unify(LiveInterval &VirtReg) {
OpenPOWER on IntegriCloud