diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-04-22 02:02:50 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-04-22 02:02:50 +0000 |
commit | 8677f2ff9acf317461987b439ede693f01baa5ec (patch) | |
tree | 4d054d37f1ba88b1c76c67a7446c5085a0a80b8c /lib/CodeGen/VirtRegMap.cpp | |
parent | 8959c39450b6fd86ba6556b0ccdb8c260f8a93a4 (diff) | |
download | llvm-8677f2ff9acf317461987b439ede693f01baa5ec.tar.gz llvm-8677f2ff9acf317461987b439ede693f01baa5ec.tar.bz2 llvm-8677f2ff9acf317461987b439ede693f01baa5ec.tar.xz |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206837 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/VirtRegMap.cpp')
-rw-r--r-- | lib/CodeGen/VirtRegMap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index f892e94e54..704736f079 100644 --- a/lib/CodeGen/VirtRegMap.cpp +++ b/lib/CodeGen/VirtRegMap.cpp @@ -16,7 +16,6 @@ // //===----------------------------------------------------------------------===// -#define DEBUG_TYPE "regalloc" #include "llvm/CodeGen/VirtRegMap.h" #include "LiveDebugVariables.h" #include "llvm/ADT/STLExtras.h" @@ -40,6 +39,8 @@ #include <algorithm> using namespace llvm; +#define DEBUG_TYPE "regalloc" + STATISTIC(NumSpillSlots, "Number of spill slots allocated"); STATISTIC(NumIdCopies, "Number of identity moves eliminated after rewriting"); |