diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-04-22 03:07:47 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-04-22 03:07:47 +0000 |
commit | c722ba49b2e5127a43ed73b0ad7443a0442f4a1a (patch) | |
tree | ea14924aac1103b7a684dbb8b3634d86ef231afb | |
parent | 915c29c11c4fee03d9b040d8b84826c313f90df9 (diff) | |
download | llvm-c722ba49b2e5127a43ed73b0ad7443a0442f4a1a.tar.gz llvm-c722ba49b2e5127a43ed73b0ad7443a0442f4a1a.tar.bz2 llvm-c722ba49b2e5127a43ed73b0ad7443a0442f4a1a.tar.xz |
[Modules] Fix potential ODR violations by sinking the DEBUG_TYPE
definition below all of the header #include lines, lib/Support edition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206847 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Support/APInt.cpp | 3 | ||||
-rw-r--r-- | lib/Support/DataStream.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp index 6dafe9ec3c..fa929eb0a5 100644 --- a/lib/Support/APInt.cpp +++ b/lib/Support/APInt.cpp @@ -12,7 +12,6 @@ // //===----------------------------------------------------------------------===// -#define DEBUG_TYPE "apint" #include "llvm/ADT/APInt.h" #include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/Hashing.h" @@ -28,6 +27,8 @@ #include <limits> using namespace llvm; +#define DEBUG_TYPE "apint" + /// A utility function for allocating memory, checking for allocation failures, /// and ensuring the contents are zeroed. inline static uint64_t* getClearedMemory(unsigned numWords) { diff --git a/lib/Support/DataStream.cpp b/lib/Support/DataStream.cpp index cb36d9c0c0..eec858416a 100644 --- a/lib/Support/DataStream.cpp +++ b/lib/Support/DataStream.cpp @@ -14,7 +14,6 @@ // //===----------------------------------------------------------------------===// -#define DEBUG_TYPE "Data-stream" #include "llvm/Support/DataStream.h" #include "llvm/ADT/Statistic.h" #include "llvm/Support/FileSystem.h" @@ -30,6 +29,8 @@ #endif using namespace llvm; +#define DEBUG_TYPE "Data-stream" + // Interface goals: // * StreamableMemoryObject doesn't care about complexities like using // threads/async callbacks to actually overlap download+compile |