diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-04-22 03:06:00 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-04-22 03:06:00 +0000 |
commit | 915c29c11c4fee03d9b040d8b84826c313f90df9 (patch) | |
tree | de0a4fd8f69c41a9d7a7c069c10e126ab17ecf9f /utils/TableGen/SubtargetEmitter.cpp | |
parent | 0d338a59bdd823e055d27a735eb521e870823f73 (diff) | |
download | llvm-915c29c11c4fee03d9b040d8b84826c313f90df9.tar.gz llvm-915c29c11c4fee03d9b040d8b84826c313f90df9.tar.bz2 llvm-915c29c11c4fee03d9b040d8b84826c313f90df9.tar.xz |
[Modules] Fix potential ODR violations by sinking the DEBUG_TYPE
definition below all of the header #include lines, TableGen edition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/SubtargetEmitter.cpp')
-rw-r--r-- | utils/TableGen/SubtargetEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/SubtargetEmitter.cpp b/utils/TableGen/SubtargetEmitter.cpp index c6363afc07..39130bde06 100644 --- a/utils/TableGen/SubtargetEmitter.cpp +++ b/utils/TableGen/SubtargetEmitter.cpp @@ -11,8 +11,6 @@ // //===----------------------------------------------------------------------===// -#define DEBUG_TYPE "subtarget-emitter" - #include "CodeGenTarget.h" #include "CodeGenSchedule.h" #include "llvm/ADT/STLExtras.h" @@ -29,6 +27,8 @@ #include <vector> using namespace llvm; +#define DEBUG_TYPE "subtarget-emitter" + namespace { class SubtargetEmitter { // Each processor has a SchedClassDesc table with an entry for each SchedClass. |