[llvm-commits] CVS: llvm/tools/analyze/AnalysisWrappers.cpp GraphPrinters.cpp analyze.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Nov 11 16:43:11 PST 2003
Changes in directory llvm/tools/analyze:
AnalysisWrappers.cpp updated: 1.6 -> 1.7
GraphPrinters.cpp updated: 1.5 -> 1.6
analyze.cpp updated: 1.55 -> 1.56
---
Log message:
Put all LLVM code into the llvm namespace, as per bug 109.
---
Diffs of the changes: (+7 -0)
Index: llvm/tools/analyze/AnalysisWrappers.cpp
diff -u llvm/tools/analyze/AnalysisWrappers.cpp:1.6 llvm/tools/analyze/AnalysisWrappers.cpp:1.7
--- llvm/tools/analyze/AnalysisWrappers.cpp:1.6 Mon Oct 20 12:55:44 2003
+++ llvm/tools/analyze/AnalysisWrappers.cpp Tue Nov 11 16:41:34 2003
@@ -26,6 +26,8 @@
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Support/InstIterator.h"
+using namespace llvm;
+
namespace {
struct InstForestHelper : public FunctionPass {
Function *F;
Index: llvm/tools/analyze/GraphPrinters.cpp
diff -u llvm/tools/analyze/GraphPrinters.cpp:1.5 llvm/tools/analyze/GraphPrinters.cpp:1.6
--- llvm/tools/analyze/GraphPrinters.cpp:1.5 Wed Oct 22 11:02:58 2003
+++ llvm/tools/analyze/GraphPrinters.cpp Tue Nov 11 16:41:34 2003
@@ -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 >) {
@@ -72,3 +74,5 @@
RegisterAnalysis<CallGraphPrinter> P2("print-callgraph",
"Print Call Graph to 'dot' file");
};
+
+} // End llvm namespace
Index: llvm/tools/analyze/analyze.cpp
diff -u llvm/tools/analyze/analyze.cpp:1.55 llvm/tools/analyze/analyze.cpp:1.56
--- llvm/tools/analyze/analyze.cpp:1.55 Mon Oct 20 12:55:44 2003
+++ llvm/tools/analyze/analyze.cpp Tue Nov 11 16:41:34 2003
@@ -26,6 +26,7 @@
#include "Support/Timer.h"
#include <algorithm>
+using namespace llvm;
struct ModulePassPrinter : public Pass {
const PassInfo *PassToPrint;
More information about the llvm-commits
mailing list