mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[Modules] Fix potential ODR violations by sinking the DEBUG_TYPE
definition below all of the header #include lines, lib/Target/... edition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206842 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "asm-printer"
|
||||
#include "PPCInstPrinter.h"
|
||||
#include "MCTargetDesc/PPCMCTargetDesc.h"
|
||||
#include "MCTargetDesc/PPCPredicates.h"
|
||||
@@ -23,6 +22,8 @@
|
||||
#include "llvm/Target/TargetOpcodes.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "asm-printer"
|
||||
|
||||
// FIXME: Once the integrated assembler supports full register names, tie this
|
||||
// to the verbose-asm setting.
|
||||
static cl::opt<bool>
|
||||
|
@@ -11,7 +11,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "mccodeemitter"
|
||||
#include "MCTargetDesc/PPCMCTargetDesc.h"
|
||||
#include "MCTargetDesc/PPCFixupKinds.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
@@ -26,6 +25,8 @@
|
||||
#include "llvm/Target/TargetOpcodes.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "mccodeemitter"
|
||||
|
||||
STATISTIC(MCNumEmitted, "Number of MC instructions emitted");
|
||||
|
||||
namespace {
|
||||
|
@@ -7,7 +7,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "ppcmcexpr"
|
||||
#include "PPCMCExpr.h"
|
||||
#include "llvm/MC/MCAsmInfo.h"
|
||||
#include "llvm/MC/MCAssembler.h"
|
||||
@@ -15,6 +14,8 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "ppcmcexpr"
|
||||
|
||||
const PPCMCExpr*
|
||||
PPCMCExpr::Create(VariantKind Kind, const MCExpr *Expr,
|
||||
bool isDarwin, MCContext &Ctx) {
|
||||
|
@@ -16,7 +16,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "asmprinter"
|
||||
#include "PPC.h"
|
||||
#include "InstPrinter/PPCInstPrinter.h"
|
||||
#include "MCTargetDesc/PPCMCExpr.h"
|
||||
@@ -59,6 +58,8 @@
|
||||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "asmprinter"
|
||||
|
||||
namespace {
|
||||
class PPCAsmPrinter : public AsmPrinter {
|
||||
protected:
|
||||
|
@@ -15,7 +15,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "ppc-branch-select"
|
||||
#include "PPC.h"
|
||||
#include "MCTargetDesc/PPCPredicates.h"
|
||||
#include "PPCInstrBuilder.h"
|
||||
@@ -26,6 +25,8 @@
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "ppc-branch-select"
|
||||
|
||||
STATISTIC(NumExpanded, "Number of branches expanded to long format");
|
||||
|
||||
namespace llvm {
|
||||
|
@@ -23,8 +23,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "ctrloops"
|
||||
|
||||
#include "llvm/Transforms/Scalar.h"
|
||||
#include "PPC.h"
|
||||
#include "PPCTargetMachine.h"
|
||||
@@ -61,6 +59,8 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "ctrloops"
|
||||
|
||||
#ifndef NDEBUG
|
||||
static cl::opt<int> CTRLoopLimit("ppc-max-ctrloop", cl::Hidden, cl::init(-1));
|
||||
#endif
|
||||
|
@@ -13,7 +13,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "ppcfastisel"
|
||||
#include "PPC.h"
|
||||
#include "MCTargetDesc/PPCPredicates.h"
|
||||
#include "PPCISelLowering.h"
|
||||
@@ -58,6 +57,8 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "ppcfastisel"
|
||||
|
||||
namespace {
|
||||
|
||||
typedef struct Address {
|
||||
|
@@ -11,7 +11,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "pre-RA-sched"
|
||||
#include "PPCHazardRecognizers.h"
|
||||
#include "PPC.h"
|
||||
#include "PPCInstrInfo.h"
|
||||
@@ -22,6 +21,8 @@
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "pre-RA-sched"
|
||||
|
||||
bool PPCDispatchGroupSBHazardRecognizer::isLoadAfterStore(SUnit *SU) {
|
||||
// FIXME: Move this.
|
||||
if (isBCTRAfterSet(SU))
|
||||
|
@@ -12,7 +12,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "ppc-codegen"
|
||||
#include "PPC.h"
|
||||
#include "MCTargetDesc/PPCPredicates.h"
|
||||
#include "PPCTargetMachine.h"
|
||||
@@ -35,6 +34,8 @@
|
||||
#include "llvm/Target/TargetOptions.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "ppc-codegen"
|
||||
|
||||
// FIXME: Remove this once the bug has been fixed!
|
||||
cl::opt<bool> ANDIGlueBug("expose-ppc-andi-glue-bug",
|
||||
cl::desc("expose the ANDI glue bug on PPC"), cl::Hidden);
|
||||
|
@@ -11,7 +11,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "jit"
|
||||
#include "PPCJITInfo.h"
|
||||
#include "PPCRelocations.h"
|
||||
#include "PPCTargetMachine.h"
|
||||
@@ -22,6 +21,8 @@
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "jit"
|
||||
|
||||
static TargetJITInfo::JITCompilerFn JITCompilerFunction;
|
||||
|
||||
#define BUILD_ADDIS(RD,RS,IMM16) \
|
||||
|
@@ -12,7 +12,6 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "reginfo"
|
||||
#include "PPCRegisterInfo.h"
|
||||
#include "PPC.h"
|
||||
#include "PPCFrameLowering.h"
|
||||
@@ -44,6 +43,8 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "reginfo"
|
||||
|
||||
#define GET_REGINFO_TARGET_DESC
|
||||
#include "PPCGenRegisterInfo.inc"
|
||||
|
||||
|
@@ -11,10 +11,11 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "powerpc-selectiondag-info"
|
||||
#include "PPCTargetMachine.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "powerpc-selectiondag-info"
|
||||
|
||||
PPCSelectionDAGInfo::PPCSelectionDAGInfo(const PPCTargetMachine &TM)
|
||||
: TargetSelectionDAGInfo(TM) {
|
||||
}
|
||||
|
@@ -14,7 +14,6 @@
|
||||
///
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "ppctti"
|
||||
#include "PPC.h"
|
||||
#include "PPCTargetMachine.h"
|
||||
#include "llvm/Analysis/TargetTransformInfo.h"
|
||||
@@ -24,6 +23,8 @@
|
||||
#include "llvm/Target/TargetLowering.h"
|
||||
using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "ppctti"
|
||||
|
||||
static cl::opt<bool> DisablePPCConstHoist("disable-ppc-constant-hoisting",
|
||||
cl::desc("disable constant hoisting on PPC"), cl::init(false), cl::Hidden);
|
||||
|
||||
|
Reference in New Issue
Block a user