projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Modules] Fix potential ODR violations by sinking the DEBUG_TYPE
[oota-llvm.git]
/
lib
/
Transforms
/
Scalar
/
GlobalMerge.cpp
diff --git
a/lib/Transforms/Scalar/GlobalMerge.cpp
b/lib/Transforms/Scalar/GlobalMerge.cpp
index e8a65e3b736dbf6285f5610d0a611fca2f6ae5f5..8c54d3aecea6b9202d8cefa0f2470dab03f5563f 100644
(file)
--- a/
lib/Transforms/Scalar/GlobalMerge.cpp
+++ b/
lib/Transforms/Scalar/GlobalMerge.cpp
@@
-51,7
+51,6
@@
// note that we saved 2 registers here almostly "for free".
// ===---------------------------------------------------------------------===//
// note that we saved 2 registers here almostly "for free".
// ===---------------------------------------------------------------------===//
-#define DEBUG_TYPE "global-merge"
#include "llvm/Transforms/Scalar.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/Statistic.h"
@@
-70,6
+69,8
@@
#include "llvm/Target/TargetLoweringObjectFile.h"
using namespace llvm;
#include "llvm/Target/TargetLoweringObjectFile.h"
using namespace llvm;
+#define DEBUG_TYPE "global-merge"
+
static cl::opt<bool>
EnableGlobalMerge("global-merge", cl::Hidden,
cl::desc("Enable global merge pass"),
static cl::opt<bool>
EnableGlobalMerge("global-merge", cl::Hidden,
cl::desc("Enable global merge pass"),