llvm.org GIT mirror llvm / 915c29c
[Modules] Fix potential ODR violations by sinking the DEBUG_TYPE definition below all of the header #include lines, TableGen edition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206846 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 6 years ago
7 changed file(s) with 14 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
1212 //
1313 //===----------------------------------------------------------------------===//
1414
15 #define DEBUG_TYPE "ctags-emitter"
16
1715 #include "llvm/Support/SourceMgr.h"
1816 #include "llvm/Support/MemoryBuffer.h"
1917 #include "llvm/TableGen/Error.h"
2220 #include
2321 #include
2422 using namespace llvm;
23
24 #define DEBUG_TYPE "ctags-emitter"
2525
2626 namespace llvm { extern SourceMgr SrcMgr; }
2727
1010 // target register and register class definitions.
1111 //
1212 //===----------------------------------------------------------------------===//
13
14 #define DEBUG_TYPE "regalloc-emitter"
1513
1614 #include "CodeGenRegisters.h"
1715 #include "CodeGenTarget.h"
2422 #include "llvm/TableGen/Error.h"
2523
2624 using namespace llvm;
25
26 #define DEBUG_TYPE "regalloc-emitter"
2727
2828 //===----------------------------------------------------------------------===//
2929 // CodeGenSubRegIndex
1111 //
1212 //===----------------------------------------------------------------------===//
1313
14 #define DEBUG_TYPE "subtarget-emitter"
15
1614 #include "CodeGenSchedule.h"
1715 #include "CodeGenTarget.h"
1816 #include "llvm/ADT/STLExtras.h"
2119 #include "llvm/TableGen/Error.h"
2220
2321 using namespace llvm;
22
23 #define DEBUG_TYPE "subtarget-emitter"
2424
2525 #ifndef NDEBUG
2626 static void dumpIdxVec(const IdxVec &V) {
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #define DEBUG_TYPE "isel-opt"
1413 #include "DAGISelMatcher.h"
1514 #include "CodeGenDAGPatterns.h"
1615 #include "llvm/ADT/DenseSet.h"
1817 #include "llvm/Support/Debug.h"
1918 #include "llvm/Support/raw_ostream.h"
2019 using namespace llvm;
20
21 #define DEBUG_TYPE "isel-opt"
2122
2223 /// ContractNodes - Turn multiple matcher node patterns like 'MoveChild+Record'
2324 /// into single compound nodes like RecordChild.
1010 // targets with fixed length instruction set.
1111 //
1212 //===----------------------------------------------------------------------===//
13
14 #define DEBUG_TYPE "decoder-emitter"
1513
1614 #include "CodeGenTarget.h"
1715 #include "llvm/ADT/APInt.h"
3230 #include
3331
3432 using namespace llvm;
33
34 #define DEBUG_TYPE "decoder-emitter"
3535
3636 namespace {
3737 struct EncodingField {
66 //
77 //===----------------------------------------------------------------------===//
88
9 #define DEBUG_TYPE "pseudo-lowering"
109 #include "CodeGenInstruction.h"
1110 #include "CodeGenTarget.h"
1211 #include "llvm/ADT/IndexedMap.h"
1918 #include "llvm/TableGen/TableGenBackend.h"
2019 #include
2120 using namespace llvm;
21
22 #define DEBUG_TYPE "pseudo-lowering"
2223
2324 namespace {
2425 class PseudoLoweringEmitter {
99 // This tablegen backend emits subtarget enumerations.
1010 //
1111 //===----------------------------------------------------------------------===//
12
13 #define DEBUG_TYPE "subtarget-emitter"
1412
1513 #include "CodeGenTarget.h"
1614 #include "CodeGenSchedule.h"
2725 #include
2826 #include
2927 using namespace llvm;
28
29 #define DEBUG_TYPE "subtarget-emitter"
3030
3131 namespace {
3232 class SubtargetEmitter {