mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 03:40:10 +01:00
radeon/llvm: Remove references to DebugFlag and isCurrentDebugType()
These weren't being used at all and they were causing build failures when LLVM was built with NDEBUG defined and mesa was not. https://bugs.freedesktop.org/show_bug.cgi?id=49110
This commit is contained in:
parent
714b4f6184
commit
c425c3823f
4 changed files with 3 additions and 22 deletions
|
|
@ -7,12 +7,8 @@
|
|||
//
|
||||
//==-----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "structcfg"
|
||||
#ifdef DEBUG
|
||||
#define DEBUGME (DebugFlag && isCurrentDebugType(DEBUG_TYPE))
|
||||
#else
|
||||
#define DEBUGME 0
|
||||
#endif
|
||||
#define DEBUG_TYPE "structcfg"
|
||||
|
||||
#include "AMDILTargetMachine.h"
|
||||
#include "AMDILUtilityFunctions.h"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
//
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "amdil-emitter"
|
||||
#include "AMDIL.h"
|
||||
#include "AMDILInstrInfo.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
|
|
|
|||
|
|
@ -8,13 +8,6 @@
|
|||
//==-----------------------------------------------------------------------===//
|
||||
|
||||
|
||||
#define DEBUG_TYPE "machine_peephole"
|
||||
#if !defined(NDEBUG)
|
||||
#define DEBUGME (DebugFlag && isCurrentDebugType(DEBUG_TYPE))
|
||||
#else
|
||||
#define DEBUGME (false)
|
||||
#endif
|
||||
|
||||
#include "AMDIL.h"
|
||||
#include "AMDILSubtarget.h"
|
||||
#include "AMDILUtilityFunctions.h"
|
||||
|
|
@ -56,7 +49,7 @@ namespace llvm
|
|||
AMDILMachinePeephole::AMDILMachinePeephole(TargetMachine &tm AMDIL_OPT_LEVEL_DECL)
|
||||
: MachineFunctionPass(ID), TM(tm)
|
||||
{
|
||||
mDebug = DEBUGME;
|
||||
mDebug = false;
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
|
|
@ -7,13 +7,6 @@
|
|||
//
|
||||
//==-----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "PeepholeOpt"
|
||||
#ifdef DEBUG
|
||||
#define DEBUGME (DebugFlag && isCurrentDebugType(DEBUG_TYPE))
|
||||
#else
|
||||
#define DEBUGME 0
|
||||
#endif
|
||||
|
||||
#include "AMDILAlgorithms.tpp"
|
||||
#include "AMDILDevices.h"
|
||||
#include "AMDILUtilityFunctions.h"
|
||||
|
|
@ -134,7 +127,7 @@ namespace llvm {
|
|||
AMDILPeepholeOpt::AMDILPeepholeOpt(TargetMachine &tm AMDIL_OPT_LEVEL_DECL)
|
||||
: FunctionPass(ID), TM(tm)
|
||||
{
|
||||
mDebug = DEBUGME;
|
||||
mDebug = false;
|
||||
optLevel = TM.getOptLevel();
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue