summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/PECOFF/ReaderImportHeader.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-04-22 03:21:31 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-04-22 03:21:31 +0000
commit9afe32d11dea6f052505c73e08013b9224eb20ef (patch)
treefff19683d59dbd071ece929cb6db9679db4044b7 /lld/lib/ReaderWriter/PECOFF/ReaderImportHeader.cpp
parent64e48d72f496b3ae97fd772f8e83a0e3f52abf32 (diff)
downloadbcm5719-llvm-9afe32d11dea6f052505c73e08013b9224eb20ef.tar.gz
bcm5719-llvm-9afe32d11dea6f052505c73e08013b9224eb20ef.zip
[Modules] Fix potential ODR violations by sinking the DEBUG_TYPE
definition below all of the header #include lines, LLD edition. IF you want to know more details about this, you can see the recent commits to Debug.h in LLVM. This is just the LLD segment of a cleanup I'm doing globally for this macro. llvm-svn: 206851
Diffstat (limited to 'lld/lib/ReaderWriter/PECOFF/ReaderImportHeader.cpp')
-rw-r--r--lld/lib/ReaderWriter/PECOFF/ReaderImportHeader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/ReaderImportHeader.cpp b/lld/lib/ReaderWriter/PECOFF/ReaderImportHeader.cpp
index 16459bb66cd..a3361461cd0 100644
--- a/lld/lib/ReaderWriter/PECOFF/ReaderImportHeader.cpp
+++ b/lld/lib/ReaderWriter/PECOFF/ReaderImportHeader.cpp
@@ -118,8 +118,6 @@
///
//===----------------------------------------------------------------------===//
-#define DEBUG_TYPE "ReaderImportHeader"
-
#include "Atoms.h"
#include "lld/Core/File.h"
@@ -147,6 +145,8 @@ using namespace lld;
using namespace lld::pecoff;
using namespace llvm;
+#define DEBUG_TYPE "ReaderImportHeader"
+
namespace lld {
namespace {
OpenPOWER on IntegriCloud