[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
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "localstackalloc"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/SetVector.h"
|
||||
@@ -40,6 +39,8 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "localstackalloc"
|
||||
|
||||
STATISTIC(NumAllocations, "Number of frame indices allocated into local block");
|
||||
STATISTIC(NumBaseRegisters, "Number of virtual frame base registers allocated");
|
||||
STATISTIC(NumReplacements, "Number of frame indices references replaced");
|
||||
|
||||
Reference in New Issue
Block a user