summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CallGraph.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-04-22 03:17:02 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-04-22 03:17:02 +0000
commit10346667771e082e27391fb42a67644a25fdaa32 (patch)
tree70df0a52c8564c29c735bf3535973118fb147250 /clang/lib/Analysis/CallGraph.cpp
parentf98597a163ec2c262716f53c05090a0ca1837309 (diff)
downloadbcm5719-llvm-10346667771e082e27391fb42a67644a25fdaa32.tar.gz
bcm5719-llvm-10346667771e082e27391fb42a67644a25fdaa32.zip
[Modules] Fix potential ODR violations by sinking the DEBUG_TYPE
definition below all of the header #include lines, clang edition. If you want more details about this, you can see some of the commits to Debug.h in LLVM recently. This is just the clang section of a cleanup I've done for all uses of DEBUG_TYPE in LLVM. llvm-svn: 206849
Diffstat (limited to 'clang/lib/Analysis/CallGraph.cpp')
-rw-r--r--clang/lib/Analysis/CallGraph.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/CallGraph.cpp b/clang/lib/Analysis/CallGraph.cpp
index 649ba57bf58..f78f6740d4f 100644
--- a/clang/lib/Analysis/CallGraph.cpp
+++ b/clang/lib/Analysis/CallGraph.cpp
@@ -10,8 +10,6 @@
// This file defines the AST-based CallGraph.
//
//===----------------------------------------------------------------------===//
-#define DEBUG_TYPE "CallGraph"
-
#include "clang/Analysis/CallGraph.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
@@ -22,6 +20,8 @@
using namespace clang;
+#define DEBUG_TYPE "CallGraph"
+
STATISTIC(NumObjCCallEdges, "Number of Objective-C method call edges");
STATISTIC(NumBlockCallEdges, "Number of block call edges");
OpenPOWER on IntegriCloud