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 | 64648265978c16dbc5c5564a45209ca60424465e (patch) | |
tree | 58d70a9f0d0c47ab03c532d202129948ea05dbe6 /llvm/lib/Support/APInt.cpp | |
parent | 97acce29f0c811a36cbe6e5031a4a20a76a589da (diff) | |
download | llvm-64648265978c16dbc5c5564a45209ca60424465e.zip llvm-64648265978c16dbc5c5564a45209ca60424465e.tar.gz llvm-64648265978c16dbc5c5564a45209ca60424465e.tar.bz2 |
[Modules] Fix potential ODR violations by sinking the DEBUG_TYPE
definition below all of the header #include lines, lib/Support edition.
llvm-svn: 206847
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r-- | llvm/lib/Support/APInt.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index 6dafe9e..fa929eb 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/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) { |