summaryrefslogtreecommitdiff
path: root/tools/lli
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-04-22 03:10:36 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-04-22 03:10:36 +0000
commit843eb0c24be587caa2168261faf9c60d323d066a (patch)
tree4363675d516f372b5909a592320a5ebfaeeaacf3 /tools/lli
parentc722ba49b2e5127a43ed73b0ad7443a0442f4a1a (diff)
[Modules] Fix potential ODR violations by sinking the DEBUG_TYPE
definition below all of the header #include lines, tools edition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lli')
-rw-r--r--tools/lli/RemoteMemoryManager.cpp3
-rw-r--r--tools/lli/lli.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/lli/RemoteMemoryManager.cpp b/tools/lli/RemoteMemoryManager.cpp
index e9f4d53ff9e..7e0f8cb76d2 100644
--- a/tools/lli/RemoteMemoryManager.cpp
+++ b/tools/lli/RemoteMemoryManager.cpp
@@ -12,7 +12,6 @@
//
//===----------------------------------------------------------------------===//
-#define DEBUG_TYPE "lli"
#include "RemoteMemoryManager.h"
#include "llvm/ExecutionEngine/ExecutionEngine.h"
#include "llvm/ExecutionEngine/ObjectImage.h"
@@ -21,6 +20,8 @@
using namespace llvm;
+#define DEBUG_TYPE "lli"
+
RemoteMemoryManager::~RemoteMemoryManager() {
for (SmallVector<Allocation, 2>::iterator
I = AllocatedSections.begin(), E = AllocatedSections.end();
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index c0c0f9d2b2d..904a9e5830a 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -13,7 +13,6 @@
//
//===----------------------------------------------------------------------===//
-#define DEBUG_TYPE "lli"
#include "llvm/IR/LLVMContext.h"
#include "RemoteMemoryManager.h"
#include "RemoteTarget.h"
@@ -64,6 +63,8 @@
using namespace llvm;
+#define DEBUG_TYPE "lli"
+
namespace {
cl::opt<std::string>
InputFile(cl::desc("<input bitcode>"), cl::Positional, cl::init("-"));