summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/OProfileJIT
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-04-22 03:04:17 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-04-22 03:04:17 +0000
commit0d338a59bdd823e055d27a735eb521e870823f73 (patch)
treeecb9dc5f55b478995a2a2876b72026e6c7c47dc0 /lib/ExecutionEngine/OProfileJIT
parent7962dbdc6531cb44003dc53323e18c8ee9a20e19 (diff)
downloadllvm-0d338a59bdd823e055d27a735eb521e870823f73.tar.gz
llvm-0d338a59bdd823e055d27a735eb521e870823f73.tar.bz2
llvm-0d338a59bdd823e055d27a735eb521e870823f73.tar.xz
[Modules] Fix potential ODR violations by sinking the DEBUG_TYPE
definition below all the header #include lines. This updates most of the miscellaneous other lib/... directories. A few left though. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/OProfileJIT')
-rw-r--r--lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp3
-rw-r--r--lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp b/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp
index 834251f409..fd37a13b11 100644
--- a/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp
+++ b/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp
@@ -15,7 +15,6 @@
#include "llvm/Config/config.h"
#include "llvm/ExecutionEngine/JITEventListener.h"
-#define DEBUG_TYPE "oprofile-jit-event-listener"
#include "llvm/IR/DebugInfo.h"
#include "llvm/IR/Function.h"
#include "llvm/CodeGen/MachineFunction.h"
@@ -33,6 +32,8 @@
using namespace llvm;
using namespace llvm::jitprofiling;
+#define DEBUG_TYPE "oprofile-jit-event-listener"
+
namespace {
class OProfileJITEventListener : public JITEventListener {
diff --git a/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp b/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp
index 6702e20d50..04edbd2a30 100644
--- a/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp
+++ b/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp
@@ -13,7 +13,6 @@
//
//===----------------------------------------------------------------------===//
-#define DEBUG_TYPE "oprofile-wrapper"
#include "llvm/ExecutionEngine/OProfileWrapper.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/Debug.h"
@@ -29,6 +28,8 @@
#include <sys/stat.h>
#include <unistd.h>
+#define DEBUG_TYPE "oprofile-wrapper"
+
namespace {
// Global mutex to ensure a single thread initializes oprofile agent.