diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2014-04-22 03:10:36 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2014-04-22 03:10:36 +0000 |
| commit | f98597a163ec2c262716f53c05090a0ca1837309 (patch) | |
| tree | 8a3552af7d1197c0276fcde08d1552514729ec41 /llvm/tools | |
| parent | 64648265978c16dbc5c5564a45209ca60424465e (diff) | |
| download | bcm5719-llvm-f98597a163ec2c262716f53c05090a0ca1837309.tar.gz bcm5719-llvm-f98597a163ec2c262716f53c05090a0ca1837309.zip | |
[Modules] Fix potential ODR violations by sinking the DEBUG_TYPE
definition below all of the header #include lines, tools edition.
llvm-svn: 206848
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/bugpoint/ToolRunner.cpp | 3 | ||||
| -rw-r--r-- | llvm/tools/lli/RemoteMemoryManager.cpp | 3 | ||||
| -rw-r--r-- | llvm/tools/lli/lli.cpp | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/llvm/tools/bugpoint/ToolRunner.cpp b/llvm/tools/bugpoint/ToolRunner.cpp index f0fb4bf6f53..e1c995f519e 100644 --- a/llvm/tools/bugpoint/ToolRunner.cpp +++ b/llvm/tools/bugpoint/ToolRunner.cpp @@ -11,7 +11,6 @@ // //===----------------------------------------------------------------------===// -#define DEBUG_TYPE "toolrunner" #include "ToolRunner.h" #include "llvm/Config/config.h" // for HAVE_LINK_R #include "llvm/Support/CommandLine.h" @@ -24,6 +23,8 @@ #include <sstream> using namespace llvm; +#define DEBUG_TYPE "toolrunner" + namespace llvm { cl::opt<bool> SaveTemps("save-temps", cl::init(false), cl::desc("Save temporary files")); diff --git a/llvm/tools/lli/RemoteMemoryManager.cpp b/llvm/tools/lli/RemoteMemoryManager.cpp index e9f4d53ff9e..7e0f8cb76d2 100644 --- a/llvm/tools/lli/RemoteMemoryManager.cpp +++ b/llvm/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/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp index c0c0f9d2b2d..904a9e5830a 100644 --- a/llvm/tools/lli/lli.cpp +++ b/llvm/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("-")); |

