diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2014-04-22 03:04:17 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2014-04-22 03:04:17 +0000 |
| commit | f58e376d233f1a9d2044f0a8a5152abe8dbf31a5 (patch) | |
| tree | 55598d5e59776755d8b48e256d9081628d08aa4c /llvm/lib/ExecutionEngine/OProfileJIT | |
| parent | 964daaaf192f76eccb4eb9fed849133c91b96bc5 (diff) | |
| download | bcm5719-llvm-f58e376d233f1a9d2044f0a8a5152abe8dbf31a5.tar.gz bcm5719-llvm-f58e376d233f1a9d2044f0a8a5152abe8dbf31a5.zip | |
[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.
llvm-svn: 206845
Diffstat (limited to 'llvm/lib/ExecutionEngine/OProfileJIT')
| -rw-r--r-- | llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp b/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp index 834251f4094..fd37a13b112 100644 --- a/llvm/lib/ExecutionEngine/OProfileJIT/OProfileJITEventListener.cpp +++ b/llvm/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/llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp b/llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp index 6702e20d50d..04edbd2a300 100644 --- a/llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp +++ b/llvm/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. |

