forked from OSchip/llvm-project
[Modules] Fix potential ODR violations by sinking the DEBUG_TYPE
definition below all of the header #include lines, tools edition. llvm-svn: 206848
This commit is contained in:
parent
6464826597
commit
f98597a163
|
@ -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"));
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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("-"));
|
||||
|
|
Loading…
Reference in New Issue