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
This commit is contained in:
Brian Gaeke
2003-11-11 22:41:34 +00:00
parent 0d723acf15
commit d0fde30ce8
558 changed files with 2494 additions and 264 deletions

View File

@@ -26,6 +26,8 @@
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Support/InstIterator.h"
using namespace llvm;
namespace {
struct InstForestHelper : public FunctionPass {
Function *F;

View File

@@ -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

View File

@@ -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

View File

@@ -26,6 +26,7 @@
#include "Support/Timer.h"
#include <algorithm>
using namespace llvm;
struct ModulePassPrinter : public Pass {
const PassInfo *PassToPrint;