mirror of
https://github.com/RPCSX/llvm.git
synced 2026-01-31 01:05:23 +01:00
Remove unneeded use of #undef DEBUG_TYPE. NFC
Where is is needed (at the end of headers that define it), be consistent about its use. Also fix a few header guards that I found in the process. Differential Revision: https://reviews.llvm.org/D34916 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307840 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1353,4 +1353,4 @@ struct BFIDOTGraphTraitsBase : public DefaultDOTGraphTraits {
|
||||
|
||||
#undef DEBUG_TYPE
|
||||
|
||||
#endif
|
||||
#endif // LLVM_ANALYSIS_BLOCKFREQUENCYINFOIMPL_H
|
||||
|
||||
@@ -34,10 +34,10 @@
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
#define DEBUG_TYPE "region"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
/// RegionBase Implementation
|
||||
template <class Tr>
|
||||
@@ -901,8 +901,8 @@ void RegionInfoBase<Tr>::calculate(FuncT &F) {
|
||||
buildRegionsTree(DT->getNode(BB), TopLevelRegion);
|
||||
}
|
||||
|
||||
#undef DEBUG_TYPE
|
||||
|
||||
} // end namespace llvm
|
||||
|
||||
#undef DEBUG_TYPE
|
||||
|
||||
#endif // LLVM_ANALYSIS_REGIONINFOIMPL_H
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <algorithm>
|
||||
|
||||
#define DEBUG_TYPE "unicode"
|
||||
|
||||
namespace llvm {
|
||||
namespace sys {
|
||||
|
||||
#define DEBUG_TYPE "unicode"
|
||||
|
||||
/// \brief Represents a closed range of Unicode code points [Lower, Upper].
|
||||
struct UnicodeCharRange {
|
||||
uint32_t Lower;
|
||||
@@ -99,10 +99,9 @@ private:
|
||||
const CharRanges Ranges;
|
||||
};
|
||||
|
||||
#undef DEBUG_TYPE // "unicode"
|
||||
|
||||
} // namespace sys
|
||||
} // namespace llvm
|
||||
|
||||
#undef DEBUG_TYPE // "unicode"
|
||||
|
||||
#endif // LLVM_SUPPORT_UNICODECHARRANGES_H
|
||||
|
||||
@@ -22,10 +22,10 @@
|
||||
#include "llvm/Support/Allocator.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
#define DEBUG_TYPE "ssaupdater"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
class CastInst;
|
||||
class PHINode;
|
||||
template<typename T> class SSAUpdaterTraits;
|
||||
@@ -453,8 +453,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
} // end llvm namespace
|
||||
|
||||
#undef DEBUG_TYPE // "ssaupdater"
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
#endif
|
||||
#endif // LLVM_TRANSFORMS_UTILS_SSAUPDATERIMPL_H
|
||||
|
||||
@@ -924,5 +924,3 @@ FunctionPass *llvm::createPBQPRegisterAllocator(char *customPassID) {
|
||||
FunctionPass* llvm::createDefaultPBQPRegisterAllocator() {
|
||||
return createPBQPRegisterAllocator();
|
||||
}
|
||||
|
||||
#undef DEBUG_TYPE
|
||||
|
||||
@@ -62,7 +62,6 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#undef DEBUG_TYPE
|
||||
#define DEBUG_TYPE "nvptx-lower"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
@@ -12,6 +12,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_LIB_TRANSFORMS_INSTRUMENTATION_CFGMST_H
|
||||
#define LLVM_LIB_TRANSFORMS_INSTRUMENTATION_CFGMST_H
|
||||
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/Analysis/BlockFrequencyInfo.h"
|
||||
@@ -24,10 +27,10 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
#define DEBUG_TYPE "cfgmst"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
/// \brief An union-find based Minimum Spanning Tree for CFG
|
||||
///
|
||||
/// Implements a Union-find algorithm to compute Minimum Spanning Tree
|
||||
@@ -220,5 +223,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
#undef DEBUG_TYPE // "cfgmst"
|
||||
} // end namespace llvm
|
||||
|
||||
#undef DEBUG_TYPE // "cfgmst"
|
||||
|
||||
#endif // LLVM_LIB_TRANSFORMS_INSTRUMENTATION_CFGMST_H
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_ANALYSIS_MAXIMUMSPANNINGTREE_H
|
||||
#define LLVM_ANALYSIS_MAXIMUMSPANNINGTREE_H
|
||||
#ifndef LLVM_LIB_TRANSFORMS_INSTRUMENTATION_MAXIMUMSPANNINGTREE_H
|
||||
#define LLVM_LIB_TRANSFORMS_INSTRUMENTATION_MAXIMUMSPANNINGTREE_H
|
||||
|
||||
#include "llvm/ADT/EquivalenceClasses.h"
|
||||
#include "llvm/IR/BasicBlock.h"
|
||||
@@ -108,4 +108,4 @@ namespace llvm {
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
#endif
|
||||
#endif // LLVM_LIB_TRANSFORMS_INSTRUMENTATION_MAXIMUMSPANNINGTREE_H
|
||||
|
||||
Reference in New Issue
Block a user