mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-01 01:54:21 +00:00
[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
This commit is contained in:
parent
0d338a59bd
commit
915c29c11c
@ -13,8 +13,6 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#define DEBUG_TYPE "ctags-emitter"
|
|
||||||
|
|
||||||
#include "llvm/Support/SourceMgr.h"
|
#include "llvm/Support/SourceMgr.h"
|
||||||
#include "llvm/Support/MemoryBuffer.h"
|
#include "llvm/Support/MemoryBuffer.h"
|
||||||
#include "llvm/TableGen/Error.h"
|
#include "llvm/TableGen/Error.h"
|
||||||
@ -24,6 +22,8 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
#define DEBUG_TYPE "ctags-emitter"
|
||||||
|
|
||||||
namespace llvm { extern SourceMgr SrcMgr; }
|
namespace llvm { extern SourceMgr SrcMgr; }
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#define DEBUG_TYPE "regalloc-emitter"
|
|
||||||
|
|
||||||
#include "CodeGenRegisters.h"
|
#include "CodeGenRegisters.h"
|
||||||
#include "CodeGenTarget.h"
|
#include "CodeGenTarget.h"
|
||||||
#include "llvm/ADT/IntEqClasses.h"
|
#include "llvm/ADT/IntEqClasses.h"
|
||||||
@ -26,6 +24,8 @@
|
|||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
#define DEBUG_TYPE "regalloc-emitter"
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// CodeGenSubRegIndex
|
// CodeGenSubRegIndex
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#define DEBUG_TYPE "subtarget-emitter"
|
|
||||||
|
|
||||||
#include "CodeGenSchedule.h"
|
#include "CodeGenSchedule.h"
|
||||||
#include "CodeGenTarget.h"
|
#include "CodeGenTarget.h"
|
||||||
#include "llvm/ADT/STLExtras.h"
|
#include "llvm/ADT/STLExtras.h"
|
||||||
@ -23,6 +21,8 @@
|
|||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
#define DEBUG_TYPE "subtarget-emitter"
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
static void dumpIdxVec(const IdxVec &V) {
|
static void dumpIdxVec(const IdxVec &V) {
|
||||||
for (unsigned i = 0, e = V.size(); i < e; ++i) {
|
for (unsigned i = 0, e = V.size(); i < e; ++i) {
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#define DEBUG_TYPE "isel-opt"
|
|
||||||
#include "DAGISelMatcher.h"
|
#include "DAGISelMatcher.h"
|
||||||
#include "CodeGenDAGPatterns.h"
|
#include "CodeGenDAGPatterns.h"
|
||||||
#include "llvm/ADT/DenseSet.h"
|
#include "llvm/ADT/DenseSet.h"
|
||||||
@ -20,6 +19,8 @@
|
|||||||
#include "llvm/Support/raw_ostream.h"
|
#include "llvm/Support/raw_ostream.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
#define DEBUG_TYPE "isel-opt"
|
||||||
|
|
||||||
/// ContractNodes - Turn multiple matcher node patterns like 'MoveChild+Record'
|
/// ContractNodes - Turn multiple matcher node patterns like 'MoveChild+Record'
|
||||||
/// into single compound nodes like RecordChild.
|
/// into single compound nodes like RecordChild.
|
||||||
static void ContractNodes(std::unique_ptr<Matcher> &MatcherPtr,
|
static void ContractNodes(std::unique_ptr<Matcher> &MatcherPtr,
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#define DEBUG_TYPE "decoder-emitter"
|
|
||||||
|
|
||||||
#include "CodeGenTarget.h"
|
#include "CodeGenTarget.h"
|
||||||
#include "llvm/ADT/APInt.h"
|
#include "llvm/ADT/APInt.h"
|
||||||
#include "llvm/ADT/SmallString.h"
|
#include "llvm/ADT/SmallString.h"
|
||||||
@ -34,6 +32,8 @@
|
|||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
#define DEBUG_TYPE "decoder-emitter"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
struct EncodingField {
|
struct EncodingField {
|
||||||
unsigned Base, Width, Offset;
|
unsigned Base, Width, Offset;
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#define DEBUG_TYPE "pseudo-lowering"
|
|
||||||
#include "CodeGenInstruction.h"
|
#include "CodeGenInstruction.h"
|
||||||
#include "CodeGenTarget.h"
|
#include "CodeGenTarget.h"
|
||||||
#include "llvm/ADT/IndexedMap.h"
|
#include "llvm/ADT/IndexedMap.h"
|
||||||
@ -21,6 +20,8 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
#define DEBUG_TYPE "pseudo-lowering"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
class PseudoLoweringEmitter {
|
class PseudoLoweringEmitter {
|
||||||
struct OpData {
|
struct OpData {
|
||||||
|
@ -11,8 +11,6 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#define DEBUG_TYPE "subtarget-emitter"
|
|
||||||
|
|
||||||
#include "CodeGenTarget.h"
|
#include "CodeGenTarget.h"
|
||||||
#include "CodeGenSchedule.h"
|
#include "CodeGenSchedule.h"
|
||||||
#include "llvm/ADT/STLExtras.h"
|
#include "llvm/ADT/STLExtras.h"
|
||||||
@ -29,6 +27,8 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
#define DEBUG_TYPE "subtarget-emitter"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
class SubtargetEmitter {
|
class SubtargetEmitter {
|
||||||
// Each processor has a SchedClassDesc table with an entry for each SchedClass.
|
// Each processor has a SchedClassDesc table with an entry for each SchedClass.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user