summaryrefslogtreecommitdiff
path: root/tools/analyze/GraphPrinters.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/analyze/GraphPrinters.cpp')
-rw-r--r--tools/analyze/GraphPrinters.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/analyze/GraphPrinters.cpp b/tools/analyze/GraphPrinters.cpp
index 34c937f0d4..6d2750f5e2 100644
--- a/tools/analyze/GraphPrinters.cpp
+++ b/tools/analyze/GraphPrinters.cpp
@@ -20,6 +20,8 @@
#include "llvm/Analysis/CallGraph.h"
#include <fstream>
+namespace llvm {
+
template<typename GraphType>
static void WriteGraphToFile(std::ostream &O, const std::string &GraphName,
const GraphType &GT) {
@@ -72,3 +74,5 @@ namespace {
RegisterAnalysis<CallGraphPrinter> P2("print-callgraph",
"Print Call Graph to 'dot' file");
};
+
+} // End llvm namespace