summaryrefslogtreecommitdiff
path: root/tools/opt
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-11-11 22:41:34 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-11-11 22:41:34 +0000
commitd0fde30ce850b78371fd1386338350591f9ff494 (patch)
tree83bb73e83f54fc8e1e474d116250ae2779562f7e /tools/opt
parent0d723acf15b0326e2df09ecb614b02a617f536e4 (diff)
downloadllvm-d0fde30ce850b78371fd1386338350591f9ff494.tar.gz
llvm-d0fde30ce850b78371fd1386338350591f9ff494.tar.bz2
llvm-d0fde30ce850b78371fd1386338350591f9ff494.tar.xz
Put all LLVM code into the llvm namespace, as per bug 109.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt')
-rw-r--r--tools/opt/AnalysisWrappers.cpp2
-rw-r--r--tools/opt/GraphPrinters.cpp4
-rw-r--r--tools/opt/PrintSCC.cpp4
-rw-r--r--tools/opt/opt.cpp1
4 files changed, 11 insertions, 0 deletions
diff --git a/tools/opt/AnalysisWrappers.cpp b/tools/opt/AnalysisWrappers.cpp
index 6c4c99f5a3..a9b9cd0470 100644
--- a/tools/opt/AnalysisWrappers.cpp
+++ b/tools/opt/AnalysisWrappers.cpp
@@ -26,6 +26,8 @@
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Support/InstIterator.h"
+using namespace llvm;
+
namespace {
struct InstForestHelper : public FunctionPass {
Function *F;
diff --git a/tools/opt/GraphPrinters.cpp b/tools/opt/GraphPrinters.cpp
index 34c937f0d4..6d2750f5e2 100644
--- a/tools/opt/GraphPrinters.cpp
+++ b/tools/opt/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
diff --git a/tools/opt/PrintSCC.cpp b/tools/opt/PrintSCC.cpp
index 3459381158..ce89fff90e 100644
--- a/tools/opt/PrintSCC.cpp
+++ b/tools/opt/PrintSCC.cpp
@@ -31,6 +31,8 @@
#include "llvm/Support/CFG.h"
#include "Support/SCCIterator.h"
+namespace llvm {
+
namespace {
struct CFGSCC : public FunctionPass {
bool runOnFunction(Function& func);
@@ -101,3 +103,5 @@ bool CallGraphSCC::run(Module &M) {
return true;
}
+
+} // End llvm namespace
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index bc0a5fcb6f..30c72f1c9e 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -27,6 +27,7 @@
#include <memory>
#include <algorithm>
+using namespace llvm;
// The OptimizationList is automatically populated with registered Passes by the
// PassNameParser.