diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-04-22 02:02:50 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-04-22 02:02:50 +0000 |
commit | 1b9dde087e0eeee0d3df30799a911b6e3f3ef46c (patch) | |
tree | 9af2c43d737b3d803afd2301d1871c4919ae3d98 /llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp | |
parent | 23ef27cd46a53a36e9b1e88d952796249f0c32c5 (diff) | |
download | llvm-1b9dde087e0eeee0d3df30799a911b6e3f3ef46c.zip llvm-1b9dde087e0eeee0d3df30799a911b6e3f3ef46c.tar.gz llvm-1b9dde087e0eeee0d3df30799a911b6e3f3ef46c.tar.bz2 |
[Modules] Remove potential ODR violations by sinking the DEBUG_TYPE
define below all header includes in the lib/CodeGen/... tree. While the
current modules implementation doesn't check for this kind of ODR
violation yet, it is likely to grow support for it in the future. It
also removes one layer of macro pollution across all the included
headers.
Other sub-trees will follow.
llvm-svn: 206837
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp b/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp index 4cf5704..3946dc3 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp @@ -11,8 +11,6 @@ // //===----------------------------------------------------------------------===// -#define DEBUG_TYPE "dwarfdebug" - #include "ByteStreamer.h" #include "DIEHash.h" #include "DIE.h" @@ -28,6 +26,8 @@ using namespace llvm; +#define DEBUG_TYPE "dwarfdebug" + /// \brief Grabs the string in whichever attribute is passed in and returns /// a reference to it. static StringRef getDIEStringAttr(const DIE &Die, uint16_t Attr) { |